Permalink
Browse files

Fix grep colors for solarized

  • Loading branch information...
1 parent 8e51170 commit b6279145843dcb2a00eb2fe73e0ec3a036e59a20 @benohara benohara committed Mar 27, 2013
Showing with 6 additions and 2 deletions.
  1. +5 −1 themes/dotphiles/init.zsh
  2. +1 −1 themes/dotphiles/prompt/prompt_dotphiles_setup
@@ -18,7 +18,11 @@ else
zstyle ':dotzsh:module:theme:lscolors:dotphiles' theme 'gxfxbEaEBxxEhEhBaDaCaD'
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
ZSH_HIGHLIGHT_PATTERNS+=('rm -rf' 'fg=white,bold,bg=red')
@@ -183,7 +183,7 @@ function prompt_dotphiles_setup {
add-zsh-hook chpwd prompt_dotphiles_chpwd
__PROMPT_dotphiles_VCS_UPDATE=1
- if [[ $TERM = *256color* || $TERM = *rxvt* ]]; then
+ if [[ $TERM = *256color || $TERM = *rxvt* ]]; then
prompt_brblack="%F{234}" # brblack base03
prompt_black="%F{235}" # black base02
prompt_brgreen="%F{240}" # brgreen base01

0 comments on commit b627914

Please sign in to comment.