我有這個.bashrc文件我怎麼在這個添加文件路徑.bashrc文件
#PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
[[ -s "$HOME/.rvm/scripts/rvm" ]] && \. "$HOME/.rvm/scripts/rvm"
export PS1="\u @\w >"
#redefine a command to add options
alias mv='mv -i'
alias cp='cp -i'
alias rm='rm -i'
alias df='df -h'
alias du='du -h'
alias mkdir='mkdir -p'
alias ls='ls -lahG'
export LESS='-N'
我有這個.bash_login文件文件
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
我有這個.bash_profile文件中
#This file only runs when user first logs in
#[[ -s "$HOME/.rvm/scripts/rvm" ]] && \. "$HOME/.rvm/scripts/rvm"
#export PS1="\u @\w >"
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
我想將此路徑添加到我的$ PATH變量,以便系統可以找到程序。
/Library/PostgreSQL/9.1/bin/
我應該添加哪個文件?
感謝
,我不認爲你是.bash_login文件做任何事情(bash中只運行如果.bash_profile不存在)。 – 2012-04-26 05:44:10