Skip to content

Instantly share code, notes, and snippets.

@cdlm
Created July 17, 2011 10:44
Show Gist options
  • Save cdlm/1087446 to your computer and use it in GitHub Desktop.
Save cdlm/1087446 to your computer and use it in GitHub Desktop.
My solarized iTerm2 + nanoc color fix + zsh syntax highlight
# 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
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