终端命令行下的一些高亮原色设置
时间:2007-07-01 来源:xuanfei
|
|
作者:悬非 提交日期:2007-3-5 15:07:00 |
|
##########################################################
Vim5 and later versions support syntax highlighting. Uncommenting the next
" line enables syntax highlighting by default.
"syntax on
##########################################################
找到上面的位置把syntax on行的注释去掉就可以拉
其次更改下终端下的提示符颜色:在频繁的终端下操作过程中更改其颜色,大大可提高效率: vi ~/.bashrc
########################################################
# Comment in the above and uncomment this below for a color prompt
#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
#########################################################
找到上面的内容把PS1那行注释去掉即可,还可以根据自己的喜好编辑颜色下面的有:它们分别是30 (黑色)、31 (红色)、32 (绿色)、33 (黄色)、34 (蓝色)、35 ( 紫红色)、36 (青色)和37 (白色)。对于底色也有8种颜色可供选择,只需要将字体颜色的3修改为4即可,例如40、41、42、43、44、45、46、47。
|
输入您的搜索字词提交搜索表单 |
||
|
相关阅读 更多 +










