2013-11-21 50 views
0

我現在有這在我的bash簡介:添加PSQL路徑猛砸

export WORKON_HOME="$HOME/.virtualenvs" 
source /usr/local/share/python/virtualenvwrapper.sh 
# Setting PATH for EPD_free-7.3-2 
# The orginal version is saved in .bash_profile.pysave 
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}" 
export PATH 

而且我想補充一點:

PATH="/Applications/Postgres93.app/Contents/MacOS/bin:$PATH" 

如何添加,在那裏?

+0

開始'PATH'和一個開始'export'的線之間。而你不「加PSQL來砸」,而是「含有PSQL到路徑的目錄」。 – fvu

回答

1

export PATH部分之前添加:

export WORKON_HOME="$HOME/.virtualenvs" 
source /usr/local/share/python/virtualenvwrapper.sh 
# Setting PATH for EPD_free-7.3-2 
# The orginal version is saved in .bash_profile.pysave 
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}" 
PATH="/Applications/Postgres93.app/Contents/MacOS/bin:$PATH" 
export PATH 

兩個PATH=..行的最後部分,閱讀:$PATH或等價:${PATH},確保您不會覆蓋現有價值。

+0

謝謝。如果我不是在那個Python virtualenv中工作會怎麼樣?似乎沒有在這種情況下工作。如果我用另一種語言進行編程,我該如何在它之外工作? – user2270029

+0

行添加到您的'.bashrc'文件 – damienfrancois

+0

沒有什麼工作仍在。 – user2270029

0

只想補充一點,前行export PATH