47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
#
|
|
# ~/.bashrc
|
|
#
|
|
|
|
# If not running interactively, don't do anything
|
|
[[ $- != *i* ]] && return
|
|
|
|
alias ls='ls --color=auto'
|
|
alias la='ls --color=auto -plhA'
|
|
alias grep='grep --color=auto'
|
|
alias prusa-slicer='flatpak run com.prusa3d.PrusaSlicer'
|
|
|
|
export PATH="$PATH:$HOME/.local/bin"
|
|
export EDITOR=vim
|
|
|
|
# quartus
|
|
export QSYS_ROOTDIR="$HOME/.local/intelFPGA_lite/18.1/quartus/sopc_builder/bin"
|
|
|
|
# start ssh-agent
|
|
if [[ ! -f "$HOME/.ssh/agent.env" ]]
|
|
then
|
|
ssh-agent >"$HOME/.ssh/agent.env"
|
|
else
|
|
. "$HOME/.ssh/agent.env" >/dev/null
|
|
ps -p $SSH_AGENT_PID >/dev/null || ssh-agent >"$HOME/.ssh/agent.env"
|
|
fi
|
|
. "$HOME/.ssh/agent.env"
|
|
export SSH_AGENT_PID;
|
|
export SSH_AUTH_SOCK;
|
|
|
|
# rust
|
|
# export RUSTUP_HOME="$HOME/.local/rust/rustup"
|
|
# export CARGO_HOME="$HOME/.local/rust/cargo"
|
|
# . $HOME/.local/rust/cargo
|
|
. "$HOME/.cargo/env"
|
|
|
|
# better tools
|
|
export FZF_CTRL_T_OPTS="
|
|
--walker-skip .git,node_modules,target,.var
|
|
--preview 'bat -n --color=always {}'
|
|
--bind 'ctrl-/:change-preview-window(down|hidden|)'"
|
|
eval "$(fzf --bash)"
|
|
eval "$(zoxide init bash --cmd cd)"
|
|
|
|
# prompt
|
|
eval "$(oh-my-posh init bash --config "$HOME/.config/oh-my-posh.toml")"
|