Created
June 21, 2012 04:19
-
-
Save kiyohara/2963813 to your computer and use it in GitHub Desktop.
Load zsh's $PATH to MacVim's $PATH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let ZSH_PATH = '/usr/local/bin/zsh' | |
if executable(ZSH_PATH) | |
let ZSH_ENV_PATH = system(ZSH_PATH . " -c 'source ~/.zshrc; echo $PATH'") | |
" let $PATH = $PATH . ":" . ZSH_ENV_PATH | |
let $PATH = ZSH_ENV_PATH | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PATH 周りの設定を .zshenv に記載しておけば、こういった手法は不要。
.zshrc に全部まとめておきたいという場合に使うと良いが、起動は少し遅くなると思われる。