如果它的问题,我的设置是Zshell与Prezto在OSX上。我有一个不需要的Heroku路径。我记得几年前我读过一个Heroku教程。我不确定是在哪里指定的。我还想知道这些rvm路径是否应该在顶部。echo $PATH
的一些输出来自我的.zhsrc文件。我不确定它的其他部分来自哪里。
echo "${PATH//:/'n'}"
/usr/local/heroku/bin'
'/Users/joe/.rvm/gems/ruby-2.2.0/bin'
'/Users/joe/.rvm/gems/ruby-2.2.0@global/bin'
'/Users/joe/.rvm/rubies/ruby-2.2.0/bin'
'/usr/local/bin'
'/usr/bin'
'/bin'
'/usr/sbin'
'/sbin'
'~/.composer/vendor/bin'
'/opt/X11/bin'
'/usr/local/MacGPG2/bin'
'/usr/local/bin'
'/usr/local/sbin'
'/usr/local/bin/node'
'/Users/joe/Library/wpcs/vendor/squizlabs/php_codesniffer/scripts'
'~/.composer/vendor/bin'
'/Users/joe/.rvm/bin
$ cat /etc/paths
返回:
/usr/bin
/bin
/usr/sbin
/sbin
~/.composer/vendor/bin
有很多地方可以找。我推荐这些:
grep PATH etc/zshenv
grep PATH ~/.zshenv
grep PATH etc/zprofile
grep PATH ~/.zprofile
grep PATH etc/zshrc
grep PATH ~/.zshrc
grep PATH etc/zlogin
grep PATH ~/.zlogin