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) |