my own colors cuz upstream one can only 8
This commit is contained in:
parent
90a1d6b95a
commit
b52ba61a62
1 changed files with 15 additions and 1 deletions
16
zshrc
16
zshrc
|
@ -4,7 +4,6 @@
|
||||||
# {{{ settings
|
# {{{ settings
|
||||||
setopt APPEND_HISTORY EXTENDED_HISTORY HIST_IGNORE_DUPS EXTENDED_GLOB AUTO_CD AUTO_PUSHD PRINT_EXIT_VALUE
|
setopt APPEND_HISTORY EXTENDED_HISTORY HIST_IGNORE_DUPS EXTENDED_GLOB AUTO_CD AUTO_PUSHD PRINT_EXIT_VALUE
|
||||||
unsetopt BEEP NO_MATCH NOTIFY MENU_COMPLETE AUTO_MENU
|
unsetopt BEEP NO_MATCH NOTIFY MENU_COMPLETE AUTO_MENU
|
||||||
autoload -Uz colors && colors
|
|
||||||
|
|
||||||
SAVEHIST=1000
|
SAVEHIST=1000
|
||||||
HISTSIZE=1000
|
HISTSIZE=1000
|
||||||
|
@ -138,6 +137,21 @@ TRAPEXIT() {
|
||||||
}
|
}
|
||||||
# }}}
|
# }}}
|
||||||
# {{{ plugins
|
# {{{ plugins
|
||||||
|
# colors
|
||||||
|
font_colors() {
|
||||||
|
color_number=0
|
||||||
|
# colors are named for the solarized palette
|
||||||
|
for color in \
|
||||||
|
gray6 red green yellow blue magenta cyan gray1 \
|
||||||
|
black orange gray5 gray4 gray3 purple gray2 white
|
||||||
|
do
|
||||||
|
eval "${color}='\e[38;5;${color_number}m'"
|
||||||
|
(( color_number++ ))
|
||||||
|
done
|
||||||
|
unset color_number
|
||||||
|
reset='\e[0m'
|
||||||
|
bold='\e[1m'
|
||||||
|
}
|
||||||
# grc
|
# grc
|
||||||
colorize() {
|
colorize() {
|
||||||
local cmds cmd
|
local cmds cmd
|
||||||
|
|
Loading…
Reference in a new issue