PATH變量我有以下的可以在運行時外殼開始env
文件:配置在Mac
PATH=/Users/paulcowan/bin:$PATH
PATH=$PATH:~/bin
PATH=$PATH:$HOME/.local/bin:$PATH
PATH=$PATH:/usr/local/bin:/usr/bin:/bin
PATH=$PATH:"$RBENV_ROOT/bin:$PATH"
export PATH
但是當我運行echo $PATH
我得到:
/Users/paulcowan/.nvm/versions/node/v5.0.0/bin:/usr/local/rbenv/shims:PATH:/Users/paulcowan/.local/bin:/Users/paulcowan/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/MacGPG2/bin:/usr/local/rbenv/shims:PATH:/Users/paulcowan/.local/bin:/Users/paulcowan/bin:/Users/paulcowan/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/rbenv/bin:PATH:/Users/paulcowan/.local/bin:/Users/paulcowan/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/MacGPG2/bin:/usr/local/rbenv/shims:PATH:/Users/paulcowan/.local/bin:/Users/paulcowan/bin:/Users/paulcowan/bin:/usr/local/bin:/usr/bin:/bin
重複相同的值。
如何正確配置我的路徑?
當你添加「$」,在第3行以上的介紹,在輸出單詞「PATH」中多次出現的存在,告訴我,你可能沒有失蹤「$」在您的ENV文件。 – GreenMatt