mac 终端添加颜色

来源:互联网 发布:大脚插件mac更新 编辑:程序博客网 时间:2024/05/22 03:13

#Tell ls to be colourfulexport CLICOLOR=1export LSCOLORS=Exfxcxdxcxegedabagacad # Tell grep to highlight matchesexport GREP_OPTIONS='--color=auto' export TERM="xterm-color"PS1='\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\]:\[\e[0;34m\]\w\[\e[0m\]    \$ '

#把这段代码放到 主目录的 .bash_profile 里,然后 source 它


0 0
原创粉丝点击