Mac給iTerm2終端配色

1.修改 .bash_profilelinux

終端輸入:vim ~/.bash_profileshell

添加內容:vim

# 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

保存退出,使其生效bash

source ~/.bash_profilespa

 

2.選擇配色code

preference -- profiles -- default -- colors -- color presetsblog

 

參照:https://www.jianshu.com/p/11a40a0b3385terminal

相關文章
相關標籤/搜索