$ vim ~/.bash_profile
Copied into your vim:
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
PS1="["
PS1="$PS1\[\e[36m\]\u\[\e[0m\]"
PS1="$PS1@"
PS1="$PS1\[\e[34;1m\]\h\[\e[0m\]"
PS1="$PS1 \w]"
PS1="$PS1\\$ "
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias ls='ls -GF'
alias ll='ls -l'
alias lla='ll -a'
alias img='sips -g pixelHeight -g pixelWidth $1'
$ cp ~/.bash_profile ~/.profile
关闭iterm2,重新打开