Colourshell:给 shell 命令着色

Colourshell 是一个非常有意思的脚本,顾名思义,使用它可以给你的 shell 命令着色,效果不错。

colourshell

使用方法:

1.临时使用,在终端中使用如下命令:. colourshell.sh。注意:点后面有一个空格。

2.永久使用,打开 .bashrc 和 .bash_profile 这两个文件,添加下面的代码:
if [ "$PS1" ] then source /path/to/colourshell.sh fi

注意:你需要根据 colourshell.sh 所保存的真实路径对上述代码作出修改。

下载地址

Read More: