Categories
學習筆記

.cshrc 简单颜色美化

1) vi .cshrc 并加入下列三行
setenv LSCOLORS ExGxFxdxCxegedabagExEx
setenv CLICOLOR yes
set prompt="%{\e[31;1m%}root%{\e[37m%}@%{\e[33m%}%m%{\e[37m%}:%{\e[36m%}%/%{\e[37m%}#%{\e[0m%} "
2) 注解掉原本的prompt
#set prompt = "%[email protected]%m:%/ %# "
3) :wq保存退出

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.