Mac给iTerm2终端配色

1.修改 .bash_profile

终端输入:vim ~/.bash_profile

添加内容:

# 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-color

保存退出,使其生效

source ~/.bash_profile

2.选择配色

preference -- profiles -- default -- colors -- color presets

参照:https://www.jianshu.com/p/11a40a0b3385

猜你喜欢

转载自www.cnblogs.com/shendehong/p/9080182.html