Macos default paths prepend my defined paths in vim
Posted
by
Bogdan Gusiev
on Super User
See other posts from Super User
or by Bogdan Gusiev
Published on 2012-10-09T12:56:46Z
Indexed on
2012/10/09
15:43 UTC
Read the original article
Hit count: 502
I am trying to call some shell command from vim with like :!ls
command.
But unfortunately there are some default PATHS that prepends PATHs defined in the original shell. Here is the echo $PATH
output in the original shell:
/usr/local/heroku/bin:/Users/bogdan/.rvm/gems/ruby-1.9.3-p194/bin:/Users/bogdan/.rvm/gems/ruby-1.9.3-p194@global/bin:/Users/bogdan/.rvm/rubies/ruby-1.9.3-p194/bin:/Users/bogdan/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/Users/bogdan/.rvm/bin:/Users/bogdan/bin:/Users/bogdan/.rvm/bin:/usr/local/Cellar/git/1.7.12.2/libexec/git-core:/Users/bogdan/.rvm/bin
and shell called within vim:
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/Users/bogdan/.rvm/gems/ruby-1.9.3-p194@devauc/bin:/Users/bogdan/.rvm/gems/ruby-1.9.3-p194@global/bin:/Users/bogdan/.rvm/rubies/ruby-1.9.3-p194/bin:/Users/bogdan/.rvm/bin:/Users/bogdan/bin:/usr/local/Cellar/git/1.7.12.2/libexec/git-core:/Users/bogdan/.rvm/bin
Why they appeared right there? How can I prevent that and make vim shell has original PATH variable.
© Super User or respective owner