aliases for server, zoxide config for server, zoxide stuff only if zoxide command exists

This commit is contained in:
Christoph J. Scherr 2023-06-12 13:51:16 +02:00
parent 6fc91e4e9a
commit 8aaa4c6c33
Signed by: PlexSheep
GPG Key ID: 25B4ACF7D88186CC
2 changed files with 18 additions and 1 deletions

View File

@ -17,6 +17,8 @@ alias egrep="grep -E"
alias lgrep="find | grep" alias lgrep="find | grep"
alias psgrep="ps axu | grep" alias psgrep="ps axu | grep"
alias isotime='date +"%Y-%m-%dT%H:%M:%S%z"' alias isotime='date +"%Y-%m-%dT%H:%M:%S%z"'
alias gg=lazygit
alias reload="source ~/.zshrc"
alias gls=/bin/ls alias gls=/bin/ls
### Functions ### Functions
@ -79,3 +81,12 @@ source ~/.local/share/nnn/quitcd/quitcd.bash_zsh
### --- local Config ------------------------------------ ### --- local Config ------------------------------------
source ~/.local.zsh source ~/.local.zsh
### --- zoxide Config ------------------------------------
if ! command -v zoxide &> /dev/null
then
# zoxide not installed, skipping
exit
else
eval "$(zoxide init zsh)"
fi

View File

@ -106,4 +106,10 @@ alias kimg="kitty +kitten icat"
source ~/.local.zsh source ~/.local.zsh
### --- zoxide Config ------------------------------------ ### --- zoxide Config ------------------------------------
if ! command -v zoxide &> /dev/null
then
# zoxide not installed, skipping
exit
else
eval "$(zoxide init zsh)" eval "$(zoxide init zsh)"
fi