Mac 终端高亮

Mac 下的终端居然没有高亮。

先看最终效果:

将以下代码拷贝到 ~/.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\]\[email protected]\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$ '
#enables colorfor iTerm
export TERM=xterm-color
使~/.bash_profile生效 运行以下命令,或者重启终端
source ~/.bash_profile

Comments

Popular posts from this blog

Openvpn客户端路由配置

搜索引擎网站收录地址大全