1.在mac命令行終端輸入:
ls -al 查看所有隱藏文件,找到.bash_profile
vi .bash_profile 編輯文件,貼入以下內容並保存
source .bash_profile 刷新文件即時生效
Iterm字體設置
#enables colorin the terminal bash shell export
export CLICOLOR=1
#sets up thecolor scheme for list export
export LSCOLORS=gxfxcxdxbxegedabagacad
#sets up theprompt color (currently a green similar to linux terminal)
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$ '
#enables colorfor iTerm
export TERM=xterm-256color
#grep 高亮
export GREP_OPTIONS='--color=always' GREP_COLOR='1;35'
#配色結束