带彩色字体的man pages(debian centos)
生活随笔
收集整理的這篇文章主要介紹了
带彩色字体的man pages(debian centos)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | 我的博客已遷移到xdoujiang.com請去那邊和我交流 簡介 most?is?a?paging?program?that?displays,one?windowful?at?a?time,the?contents?of?a?file?on?a?terminal. It?pauses?after?each?windowful?and?prints?on?the?window?status?line?the?screen?the?file?name,? current?line?number,?and?the?percentage?of?the?file?so?far?displayed. 一、debian 1、安裝包 apt-get?-y?install?most 2、在.bashrc最后1行添加 export?PAGER="/usr/bin/most?-s" 3、生效 source?.bashrc 二、centos 1、直接在.bashrc最后1行添加man函數 man?()? { env?\ LESS_TERMCAP_mb=$(printf?"\e[1;31m")?\ LESS_TERMCAP_md=$(printf?"\e[1;31m")?\ LESS_TERMCAP_me=$(printf?"\e[0m")?\ LESS_TERMCAP_se=$(printf?"\e[0m")?\ LESS_TERMCAP_so=$(printf?"\e[1;44;33m")?\ LESS_TERMCAP_ue=$(printf?"\e[0m")?\ LESS_TERMCAP_us=$(printf?"\e[1;32m")?\ man?"$@" } 2、yum方式安裝most yum?-y?install?most 三、參考 http://www.cyberciti.biz/faq/unix-linux-color-man-pages-configuration/ 四、直接上圖 |
本文轉自 xdoujiang 51CTO博客,原文鏈接:http://blog.51cto.com/7938217/1655616,如需轉載請自行聯系原作者
總結
以上是生活随笔為你收集整理的带彩色字体的man pages(debian centos)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 孕妇梦到黑牛预示着什么
- 下一篇: Crystal Reports第一张报表