Configuration files

zsh: only initialise `zoxide` when `zoxide` is available

Changed files
+6 -1
+6 -1
.zshrc
··· 32 export PATH=~/.zvm/bin:$PATH 33 export PATH=~/.local/bin:$PATH 34 35 - eval "$(zoxide init zsh --cmd cd)" 36 if [ -x "$(which starship)" ]; then 37 eval "$(starship init zsh)" 38 else 39 echo "starship not in path" 40 fi 41 42 export GPG_TTY=$(tty)
··· 32 export PATH=~/.zvm/bin:$PATH 33 export PATH=~/.local/bin:$PATH 34 35 if [ -x "$(which starship)" ]; then 36 eval "$(starship init zsh)" 37 else 38 echo "starship not in path" 39 + fi 40 + 41 + if [ -x "$(which zoxide)" ]; then 42 + eval "$(zoxide init zsh --cmd cd)" 43 + else 44 + echo "zoxide not in path" 45 fi 46 47 export GPG_TTY=$(tty)