Chinaunix首页 | 论坛 | 博客
  • 博客访问: 502969
  • 博文数量: 102
  • 博客积分: 4001
  • 博客等级: 上校
  • 技术积分: 756
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-21 16:01
文章分类

全部博文(102)

文章存档

2011年(1)

2010年(1)

2009年(56)

2008年(44)

我的朋友

分类:

2008-09-12 14:45:23

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
阅读(1044) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~