mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-20 03:13:33 +01:00
added 256 color support for man pages
This commit is contained in:
parent
2ac8039dd6
commit
b35a583c09
1 changed files with 12 additions and 5 deletions
17
zshrc
17
zshrc
|
|
@ -52,14 +52,21 @@ export PATH=$HOME/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH
|
|||
# set $EDITOR
|
||||
export EDITOR='vim'
|
||||
|
||||
# man pages: color
|
||||
export LESS_TERMCAP_mb=$'\E[01;31m'
|
||||
export LESS_TERMCAP_md=$'\E[01;33m'
|
||||
### colors in man pages :)
|
||||
### ::: man pages: basic coloring :::
|
||||
# export LESS_TERMCAP_mb=$'\E[01;31m'
|
||||
# export LESS_TERMCAP_md=$'\E[01;33m'
|
||||
export LESS_TERMCAP_me=$'\E[0m'
|
||||
export LESS_TERMCAP_se=$'\E[0m'
|
||||
export LESS_TERMCAP_so=$'\E[01;44;33m'
|
||||
# export LESS_TERMCAP_so=$'\E[01;44;33m'
|
||||
export LESS_TERMCAP_ue=$'\E[0m'
|
||||
export LESS_TERMCAP_us=$'\E[01;32m'
|
||||
# export LESS_TERMCAP_us=$'\E[01;32m'
|
||||
### ::: man pages (more beautiful 256 coloring) :::
|
||||
export LESS_TERMCAP_mb=$'[38;5;171;01m'
|
||||
export LESS_TERMCAP_md=$'[38;5;221;01m'
|
||||
export LESS_TERMCAP_so=$'[38;5;80;01m'
|
||||
export LESS_TERMCAP_us=$'[38;5;37;01m'
|
||||
|
||||
|
||||
# zsh fix for ssh host completion from ~/.ssh/config
|
||||
[ -f ~/.ssh/config ] && : ${(A)ssh_config_hosts:=${${${${(@M)${(f)"$(<~/.ssh/config)"}:#Host *}#Host }:#*\**}:#*\?*}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue