add bat/zoxide config
This commit is contained in:
12
.bashrc
12
.bashrc
@@ -4,7 +4,7 @@
|
||||
cookie () {
|
||||
fortune -es | cowsay | lolcat -S 5
|
||||
}
|
||||
cookie
|
||||
# cookie
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
@@ -101,6 +101,11 @@ if [[ -x "$(command -v fdfind)" ]]; then
|
||||
alias fd='fdfind'
|
||||
fi
|
||||
|
||||
# alias cat to bat
|
||||
if [[ -x "$(command -v bat)" ]]; then
|
||||
alias cat="bat -pp"
|
||||
fi
|
||||
|
||||
# view/edit commands
|
||||
if [[ -x "$(command -v view)" ]]; then
|
||||
alias v='view'
|
||||
@@ -198,6 +203,11 @@ if [[ -x "$(command -v starship)" ]]; then
|
||||
eval "$(starship init bash)"
|
||||
fi
|
||||
|
||||
if [[ -x "$(command -v zoxide)" ]]; then
|
||||
eval "$(zoxide init bash)"
|
||||
alias cd="z"
|
||||
fi
|
||||
|
||||
# add local changes to your bash environment in ~/.bash_local
|
||||
if [ -f ~/.bash_local ]; then
|
||||
. ~/.bash_local
|
||||
|
||||
Reference in New Issue
Block a user