mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-04 06:57:23 +01:00
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:
22
zprofile
Normal file
22
zprofile
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
# extend path
|
||||||
|
export PATH="$HOME/local/bin:$PATH"
|
||||||
|
|
||||||
|
# nvm
|
||||||
|
export NVM_DIR="$HOME/.nvm"
|
||||||
|
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
|
||||||
|
|
||||||
|
# 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
|
||||||
25
zshrc
25
zshrc
@@ -23,31 +23,6 @@ if ! zgen saved; then
|
|||||||
zgen save
|
zgen save
|
||||||
fi
|
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
|
# Other settings
|
||||||
########################
|
########################
|
||||||
|
|||||||
Reference in New Issue
Block a user