move from stow to chezmoi
This commit is contained in:
44
dot_bashrc
Normal file
44
dot_bashrc
Normal file
@@ -0,0 +1,44 @@
|
||||
#
|
||||
# ~/.bashrc
|
||||
#
|
||||
|
||||
. "$HOME/.config/env"
|
||||
|
||||
# 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 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
|
||||
. "$CARGO_HOME/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")"
|
||||
Reference in New Issue
Block a user