Decorate your terminal with a rich array of 256 colors
Terminals are not only black and white. Although using terminals can improve efficiency, this does not mean that we can only face non-black and white interfaces. Some applications on your terminal may have used 16 colors to display part of the content, but it is not delicate yet. In fact, many terminals, such as xterm, urxvt, and Iterm. app in Mac OSX, can support 256 colors. You can see more delicate and elegant colors under these terminals.
Several important program configurations are involved here for your reference. Note that not all terminal and command line applications support the 256 color.
Vim
It can distinguish between different colors and make vim look more beautiful. Click here to download the color file. The color file can be introduced to your vim configuration as follows:
if $TERM =="xterm"|| $TERM =="rxvt"|| $TERM =="xterm-256color"|| $TERM =="rxvt-unicode"||&term =~"builtin_gui"|| $TERM =="dumb"
set t_Co=256
colorscheme calmar256-dark
else
colorscheme desert
endif
Mutt
Here, you can introduce the color scheme to your. muttrc through source:
source ~/.mutt/mutt_color_256
Slrn
Slrn supports 256 colors, but many elements do not support color differentiation. The color scheme is directly written in the configuration file.
Git
Look at the output of git log, isn't it softer? The configuration file is here.
Man/less
For Xterm/Urxvt, changing the foreground/background/bold/underline/italic color of the terminal allows less to display better highlighted effects. Less is used in man page display, so you will find that your man display is more beautiful. The configuration file is here.
In addition, you can$LESS
Add Environment Variables-J
In this way, a "*" is displayed before the row where the result is located.
Window Status Bar
Many people prefer to display a status bar below the terminal window, especially when using screen to split the window into several subwindows.
The configuration file is here.
Ls
The color output of ls can also be better. The configuration file is here.
Grep
You can set grep to display matching content in green:
export GREP_COLOR='01;32'# color grep matches green
aliasgrep='grep --color'
Do you have some color schemes? Welcome to share.
This article permanently updates the link address: