Created
July 17, 2011 10:44
-
-
Save cdlm/1087446 to your computer and use it in GitHub Desktop.
My solarized iTerm2 + nanoc color fix + zsh syntax highlight
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# patch nanoc's logging colors for solarized shinyness | |
# | |
# this is to work with the iTerm 2 color presets, | |
# which uses most of the "bright" color codes for the grayscale swatches | |
module Nanoc3::CLI | |
class Logger | |
(ACTION_COLORS ||= {}).update( | |
:create => "\e[38;5;2m", | |
:update => "\e[38;5;3m", | |
:identical => "\e[1;38;5;6m", | |
:skip => "\e[1;38;5;6m" | |
) | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source $Z/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | |
ZSH_HIGHLIGHT_STYLES[default]='fg=cyan,bold' #base1 | |
ZSH_HIGHLIGHT_STYLES[alias]='fg=white' | |
ZSH_HIGHLIGHT_STYLES[builtin]='fg=yellow' | |
ZSH_HIGHLIGHT_STYLES[function]='fg=white' | |
ZSH_HIGHLIGHT_STYLES[command]='fg=white' | |
ZSH_HIGHLIGHT_STYLES[precommand]='fg=white' | |
ZSH_HIGHLIGHT_STYLES[commandseparator]='fg=green,bold' #base01 | |
ZSH_HIGHLIGHT_STYLES[path]='fg=cyan' | |
ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=blue,bold' #base0 | |
ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=blue,bold' #base0 | |
ZSH_HIGHLIGHT_STYLES[back-quoted-argument]='fg=red,bold' #orange |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment