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