Cleanup; add zoxide

This commit is contained in:
Daniel Lynn 2021-08-05 13:56:03 -05:00
parent 992c15e7d6
commit d0b52f1d4e
Signed by: daniel
GPG Key ID: 28496A140E180A9D

24
zshrc
View File

@ -23,15 +23,29 @@ else
source /usr/share/zsh/manjaro-zsh-prompt source /usr/share/zsh/manjaro-zsh-prompt
fi fi
[[ -s ~/.p10k.zsh ]] && source ~/.p10k.zsh if [[ -s ~/.p10k.zsh ]]; then
source ~/.p10k.zsh
fi
fi
if [[ -n "$(command -v zoxide)" ]]; then
eval "$(zoxide init zsh)"
fi fi
# Custom aliases # Custom aliases
[[ -s ~/.aliases ]] && source ~/.aliases if [[ -s ~/.aliases ]]; then
source ~/.aliases;
fi
# NVM # NVM
[[ -s "$NVM_DIR/nvm.sh" ]] && source "$NVM_DIR/nvm.sh" # This loads nvm if [[ -s "$NVM_DIR/nvm.sh" ]]; then
[[ -s "$NVM_DIR/bash_completion" ]] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion source "$NVM_DIR/nvm.sh" # This loads nvm
fi
if [[ -s "$NVM_DIR/bash_completion" ]]; then
source "$NVM_DIR/bash_completion" # This loads nvm bash_completion
fi
# Source machine-specific setup # Source machine-specific setup
[[ -s ~/.zshrc.local ]] && source ~/.zshrc.local if [[ -s ~/.zshrc.local ]]; then
source ~/.zshrc.local;
fi