aliases for server, zoxide config for server, zoxide stuff only if zoxide command exists
This commit is contained in:
parent
6fc91e4e9a
commit
8aaa4c6c33
|
@ -17,6 +17,8 @@ alias egrep="grep -E"
|
|||
alias lgrep="find | grep"
|
||||
alias psgrep="ps axu | grep"
|
||||
alias isotime='date +"%Y-%m-%dT%H:%M:%S%z"'
|
||||
alias gg=lazygit
|
||||
alias reload="source ~/.zshrc"
|
||||
alias gls=/bin/ls
|
||||
|
||||
### Functions
|
||||
|
@ -79,3 +81,12 @@ source ~/.local/share/nnn/quitcd/quitcd.bash_zsh
|
|||
|
||||
### --- local Config ------------------------------------
|
||||
source ~/.local.zsh
|
||||
|
||||
### --- zoxide Config ------------------------------------
|
||||
if ! command -v zoxide &> /dev/null
|
||||
then
|
||||
# zoxide not installed, skipping
|
||||
exit
|
||||
else
|
||||
eval "$(zoxide init zsh)"
|
||||
fi
|
||||
|
|
|
@ -106,4 +106,10 @@ alias kimg="kitty +kitten icat"
|
|||
source ~/.local.zsh
|
||||
|
||||
### --- zoxide Config ------------------------------------
|
||||
eval "$(zoxide init zsh)"
|
||||
if ! command -v zoxide &> /dev/null
|
||||
then
|
||||
# zoxide not installed, skipping
|
||||
exit
|
||||
else
|
||||
eval "$(zoxide init zsh)"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue