add jenv zsh config && fix vim zsh exception

This commit is contained in:
Chengzhen Wu 2018-03-27 18:04:08 +08:00
parent b3ab5e3eb1
commit 504e2a43b9
2 changed files with 22 additions and 0 deletions

View File

@ -13,3 +13,6 @@ for fpath in split(globpath(vimsettings, '*.vim'), '\n')
exe 'source' fpath exe 'source' fpath
endfor endfor
set shell=/usr/local/bin/zsh

19
zsh/jenv.zsh Normal file
View File

@ -0,0 +1,19 @@
export PATH="/Users/czwu/.jenv/shims:${PATH}"
source "/usr/local/Cellar/jenv/0.4.4/libexec/libexec/../completions/jenv.zsh"
jenv rehash 2>/dev/null
export JENV_LOADED=1
unset JAVA_HOME
jenv() {
typeset command
command="$1"
if [ "$#" -gt 0 ]; then
shift
fi
case "$command" in
enable-plugin|rehash|shell|shell-options)
eval `jenv "sh-$command" "$@"`;;
*)
command jenv "$command" "$@";;
esac
}