use zprofile instead of zshenv

/etc/profile will overwrite PATH when using zshenv, see
https://bugs.archlinux.org/task/35966
This commit is contained in:
Thomas Ruoff
2015-12-10 23:14:44 +01:00
parent b4910d6d19
commit 75812ddcb6
2 changed files with 22 additions and 25 deletions

25
zshrc
View File

@@ -23,31 +23,6 @@ if ! zgen saved; then
zgen save
fi
# extend path
export PATH="$HOME/local/bin:$PATH"
# nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
# use node version specified in ~/.nvmrc as default
nvm use > /dev/null
# Base16 Shell
BASE16_SCHEME="solarized"
BASE16_SHELL="$HOME/.base16-shell/base16-$BASE16_SCHEME.dark.sh"
[[ -s $BASE16_SHELL ]] && . $BASE16_SHELL
########################
# Dist related settings
########################
case $OSTYPE in
"darwin14.0" )
export PATH="$(brew --prefix coreutils)/libexec/gnubin:/usr/local/bin:$PATH"
export MANPATH="$(brew --prefix coreutils)/libexec/gnuman:$MANPATH"
#eval $(ssh-agent -s)
;;
esac
########################
# Other settings
########################