2013-11-21 51 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