Chinaunix首页 | 论坛 | 博客
  • 博客访问: 514319
  • 博文数量: 119
  • 博客积分: 5054
  • 博客等级: 大校
  • 技术积分: 1305
  • 用 户 组: 普通用户
  • 注册时间: 2010-01-03 13:13
文章分类

全部博文(119)

文章存档

2011年(4)

2010年(115)

我的朋友

分类: LINUX

2010-01-03 14:52:46

1.安装most, most和less类似,是一个文本查看工具,不过它支持彩色。
sudo aptitude install most

2. 配置 most

cat > ~/.mostrc << "EOF"

% Color settings

color normal lightgray black

color status yellow blue

color underline yellow black

color overstrike brightblue black

% less-like keybindings

unsetkey "^K"

unsetkey "g"

unsetkey "G"

unsetkey ":"

setkey next_file ":n"

setkey find_file ":e"

setkey next_file ":p"

setkey toggle_options ":o"

setkey toggle_case ":c"

setkey delete_file ":d"

setkey exit ":q"

setkey bob "g"

setkey eob "G"

setkey down "e"

setkey down "E"

setkey down "j"

setkey down "^N"

setkey up "y"

setkey up "^Y"

setkey up "k"

setkey up "^P"

setkey up "^K"

setkey page_down "f"

setkey page_down "^F"

setkey page_up "b"

setkey page_up "^B"

setkey other_window "z"

setkey other_window "w"

setkey search_backward "?"

setkey bob "p"

setkey goto_mark "'"

setkey find_file "E"

setkey edit "v"

EOF
cat >> ~/.bashrc << "EOF"

export PAGER='/usr/bin/most -s'

export BROWSER='/usr/bin/most -s'

EOF


source ~/.bashrc

效果图:

附中文man的deb包

阅读(598) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~