tpope / vim-rvm

rvm.vim: Switch Ruby versions from inside Vim
http://www.vim.org/scripts/script.php?script_id=4269
117 stars 5 forks source link

Moving /etc/zshenv to /etc/zshrc cause 'ack' command not found #7

Closed yesmeck closed 10 years ago

yesmeck commented 10 years ago

image

The 'ack' is in /usr/local/bin dir which not included in the $PATH. How can I fix this?

tpope commented 10 years ago

Is this a MacVim specific problem?

yesmeck commented 10 years ago

@tpope Yes.

tpope commented 10 years ago

So MacVim does some shenanigans to try to find your shell's path. Since it's finding RVM, you can try adding /usr/local/bin to the path in whatever file you're enabling RVM.

yesmeck commented 10 years ago

Add let $PATH='/usr/local/bin:' . $PATH to .vimrc fix my problem,thank you.