Skip to content

Commit

Permalink
Fix grep colors for solarized
Browse files Browse the repository at this point in the history
  • Loading branch information
benohara committed Mar 27, 2013
1 parent 8e51170 commit b627914
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion themes/dotphiles/init.zsh
Expand Up @@ -18,7 +18,11 @@ else
zstyle ':dotzsh:module:theme:lscolors:dotphiles' theme 'gxfxbEaEBxxEhEhBaDaCaD' zstyle ':dotzsh:module:theme:lscolors:dotphiles' theme 'gxfxbEaEBxxEhEhBaDaCaD'
fi fi


zstyle ':dotzsh:module:theme:grepcolors:dotphiles' theme '37;45' if [[ $TERM = *256color || $TERM = *rxvt* ]]; then
zstyle ':dotzsh:module:theme:grepcolors:dotphiles' theme '37;45'
else
zstyle ':dotzsh:module:theme:grepcolors:dotphiles' theme '00;38;5;254;48;5;160'
fi


# Patterns # Patterns
ZSH_HIGHLIGHT_PATTERNS+=('rm -rf' 'fg=white,bold,bg=red') ZSH_HIGHLIGHT_PATTERNS+=('rm -rf' 'fg=white,bold,bg=red')
Expand Down
2 changes: 1 addition & 1 deletion themes/dotphiles/prompt/prompt_dotphiles_setup
Expand Up @@ -183,7 +183,7 @@ function prompt_dotphiles_setup {
add-zsh-hook chpwd prompt_dotphiles_chpwd add-zsh-hook chpwd prompt_dotphiles_chpwd
__PROMPT_dotphiles_VCS_UPDATE=1 __PROMPT_dotphiles_VCS_UPDATE=1


if [[ $TERM = *256color* || $TERM = *rxvt* ]]; then if [[ $TERM = *256color || $TERM = *rxvt* ]]; then
prompt_brblack="%F{234}" # brblack base03 prompt_brblack="%F{234}" # brblack base03
prompt_black="%F{235}" # black base02 prompt_black="%F{235}" # black base02
prompt_brgreen="%F{240}" # brgreen base01 prompt_brgreen="%F{240}" # brgreen base01
Expand Down

0 comments on commit b627914

Please sign in to comment.