終端命令行下的一些高亮原色設(shè)置
首先要改下重要的vim編輯器支持的語句機(jī)構(gòu)的色彩分析顯示功能,因?yàn)閡bunt6.06默認(rèn)是沒啟用的。所以現(xiàn)在開始:# vi /etc/vim/vimrc
##########################################################
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/]/$ '
#########################################################
找到上面的內(nèi)容把PS1那行注釋去掉即可,還可以根據(jù)自己的喜好編輯顏色下面的有:它們分別是30 (黑色)、31 (紅色)、32 (綠色)、33 (黃色)、34 (藍(lán)色)、35 ( 紫紅色)、36 (青色)和37 (白色)。對于底色也有8種顏色可供選擇,只需要將字體顏色的3修改為4即可,例如40、41、42、43、44、45、46、47。
新聞熱點(diǎn)
疑難解答
圖片精選