Most a color-enabled text Viewing tool

Source: Internet
Author: User
Keywords Color most text viewing tools
Tags cat code configure install settings status text text viewing tools

1. Install most, most and pager are similar, is a text viewing tool, but it supports color.

Code:

sudo aptitude Install most

2. Configure most

Code:

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

Code:

Cat >> ~/.BASHRC << "EOF"
Export pager= '/usr/bin/most-s '
Export browser= '/usr/bin/most-s '
EOF

Code:

SOURCE ~/.BASHRC

. Try the colored man.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.