Mac中iterm2显示彩色

Mac中iterm2显示彩色

参考网址:https://segmentfault.com/q/1010000000653503

显示隐藏文件

 

defaults write com.apple.Finder AppleShowAllFiles YES

 

编辑.bash_profile

加入

 

export CLICOLOR=1
export LSCOLORS=gxfxcxdxbxegedabagacad
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$ '
export TERM=xterm-color

 

即图片中的代码(不知道为神马,直接写的显示会有问题):

然后

 

source .bash_profile

 

 

但是设置完按住command键就不能点击文件进行编辑了。

 

posted on 2019-05-22 18:37  刘应杰  阅读(981)  评论(0编辑  收藏  举报

导航