1
0

add bat/zoxide config

This commit is contained in:
2024-01-19 10:47:31 +01:00
parent 9e180c4b7f
commit 1fa57f9c6d

12
.bashrc
View File

@@ -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