diff --git a/vim/settings.vim b/vim/settings.vim index 81c3141..f131fed 100644 --- a/vim/settings.vim +++ b/vim/settings.vim @@ -13,3 +13,6 @@ for fpath in split(globpath(vimsettings, '*.vim'), '\n') exe 'source' fpath endfor + + +set shell=/usr/local/bin/zsh diff --git a/zsh/jenv.zsh b/zsh/jenv.zsh new file mode 100644 index 0000000..1ccdf88 --- /dev/null +++ b/zsh/jenv.zsh @@ -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 +}