add jenv zsh config && fix vim zsh exception
This commit is contained in:
parent
b3ab5e3eb1
commit
504e2a43b9
@ -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
19
zsh/jenv.zsh
Normal 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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user