Which shell are you using? I assume that you are using the standard Bash shell. There are also Csh, Ksh and Zsh.
Terminal.app Mac OS X . , $HOME/.bash_profile $HOME/profile , . . , PS1 set -o vi.
. , , xterm. . , , .bash_profile, .
$HOME/.bashrc , .
?
Kornshell (ksh), $HOME/profile, $HOME/.bash_profile. Zshell (zsh), . , . man- zsh ZDOTDIR.
script $HOME/.bashrc. - .bash_profile, .bashrc :
[[ -x $HOME/.bashrc ]] && source "$HOME/.bashrc"
, , script, export $PS4="\$LINENO> ".
$PATH . .bash_profile ( .bashrc), Mac OS X , . /etc/paths Bash Kornshell /usr/libexec/path_helper.
Mac $PATH :
/usr/local/bin:/usr/share/bin:/bin:/usr/bin:/usr/sbin:/sbin:$HOME/bin
, /opt, . ( - ) /usr/local/bin. , . , . , /usr/bin/git - 1.9.3. /usr/local/bin/git - 2.2.1.
, , /etc/profile, OS X.