2013-05-03 58 views
6

我需要您的路徑中添加〜/ bin目錄。添加〜/ bin目錄

但我不知道這樣做的實際的命令是,我知道它會在我的.bash_profile

有誰知道這一點,或者如何在建立一個新的.bash_profile爲終端的教程新的MAC(UNIX)

+0

這可能會有幫助。 http://stackoverflow.com/questions/5545715/how-do-i-add-usr-local-git-bin-to-the-path-on-mac-osx 否則vim的〜/ .bash_profile中將會創建一個bash配置文件,然後鍵入它導出PATH = $ PATH: Shobit 2013-05-03 20:36:35

回答

10

添加這對.bash_profile:

export PATH="$PATH":~/bin

如果沒有.bash_profile文件,就創建它。