Files
config/.zshrc.local
2020-11-09 03:46:24 +08:00

28 lines
970 B
Plaintext

#
alias "update=(cd ~/git; make all)"
#
[[ -s "$HOME/.gvm/scripts/gvm" ]] && source "$HOME/.gvm/scripts/gvm"
[[ -s "$HOME/perl5/perlbrew/etc/bashrc" ]] && source "$HOME/perl5/perlbrew/etc/bashrc"
[[ -s "$HOME/.phpbrew/bashrc" ]] && source "$HOME/.phpbrew/bashrc"
[[ -s "$HOME/.cargo/env" ]] && source "$HOME/.cargo/env"
[[ -f "$HOME/.fzf.zsh" ]] && source "$HOME/.fzf.zsh"
#
export PYENV_ROOT="${HOME}/.pyenv"
if [ -d "${PYENV_ROOT}" ]; then
export PATH="${PYENV_ROOT}/bin:${PYENV_ROOT}/shims:${PATH}"
eval "$(pyenv init - --no-rehash)"
fi
#
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
#
if [ -d "${HOME}/.rbenv" ]; then
export PATH="${HOME}/.rbenv/bin:${PATH}"
eval "$(rbenv init - --no-rehash)"
fi
#
if [ -d "${HOME}/.rvm" ]; then
export PATH="${HOME}/.rvm/bin:${PATH}"
source "${HOME}/.rvm/scripts/rvm"
fi