我想在我的.bash_profile中添加PYTHONPATH,但希望确认我是否正确操作。 我的.bash_profile(不含PYTHONPATH)如下:
因此,我的更新后的.bash_profile文件(带有PYTHONPATH)如下所示:
我该如何正确格式化这段内容?
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/.local/bin:$HOME/bin:/home/user/condor/bin:/home/user/merlin/bin
export PATH
我想要添加到PYTHONPATH的路径是:
/home/user/merlin/bin/strats/
因此,我的更新后的.bash_profile文件(带有PYTHONPATH)如下所示:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/.local/bin:$HOME/bin:/home/user/condor/bin:/home/user/merlin/bin
export PATH
export PYTHONPATH=/home/user/merlin/bin/strats/
我该如何正确格式化这段内容?