Skip to content

Instantly share code, notes, and snippets.

@mieky
Last active December 21, 2015 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mieky/6351805 to your computer and use it in GitHub Desktop.
Save mieky/6351805 to your computer and use it in GitHub Desktop.
iterm2 color scheme and matching themes for zsh + irssi
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.11764705926179886</real>
<key>Green Component</key>
<real>0.11372549086809158</real>
<key>Red Component</key>
<real>0.10588235408067703</real>
</dict>
<key>Ansi 1 Color</key>
<dict>
<key>Blue Component</key>
<real>0.44705882668495178</real>
<key>Green Component</key>
<real>0.14901961386203766</real>
<key>Red Component</key>
<real>0.97647058963775635</real>
</dict>
<key>Ansi 10 Color</key>
<dict>
<key>Blue Component</key>
<real>0.32941177487373352</real>
<key>Green Component</key>
<real>0.89019608497619629</real>
<key>Red Component</key>
<real>0.7137255072593689</real>
</dict>
<key>Ansi 11 Color</key>
<dict>
<key>Blue Component</key>
<real>0.42352941632270813</real>
<key>Green Component</key>
<real>0.92941176891326904</real>
<key>Red Component</key>
<real>0.99607843160629272</real>
</dict>
<key>Ansi 12 Color</key>
<dict>
<key>Blue Component</key>
<real>1</real>
<key>Green Component</key>
<real>0.92941176891326904</real>
<key>Red Component</key>
<real>0.54901963472366333</real>
</dict>
<key>Ansi 13 Color</key>
<dict>
<key>Blue Component</key>
<real>0.99607843160629272</real>
<key>Green Component</key>
<real>0.43529412150382996</real>
<key>Red Component</key>
<real>0.61960786581039429</real>
</dict>
<key>Ansi 14 Color</key>
<dict>
<key>Blue Component</key>
<real>0.63137257099151611</real>
<key>Green Component</key>
<real>0.61176472902297974</real>
<key>Red Component</key>
<real>0.5372549295425415</real>
</dict>
<key>Ansi 15 Color</key>
<dict>
<key>Blue Component</key>
<real>0.94901961088180542</real>
<key>Green Component</key>
<real>0.97254902124404907</real>
<key>Red Component</key>
<real>0.97254902124404907</real>
</dict>
<key>Ansi 2 Color</key>
<dict>
<key>Blue Component</key>
<real>0.078431375324726105</real>
<key>Green Component</key>
<real>0.70588237047195435</real>
<key>Red Component</key>
<real>0.50980395078659058</real>
</dict>
<key>Ansi 3 Color</key>
<dict>
<key>Blue Component</key>
<real>0.12156862765550613</real>
<key>Green Component</key>
<real>0.59215688705444336</real>
<key>Red Component</key>
<real>0.99215686321258545</real>
</dict>
<key>Ansi 4 Color</key>
<dict>
<key>Blue Component</key>
<real>0.83921569585800171</real>
<key>Green Component</key>
<real>0.7607843279838562</real>
<key>Red Component</key>
<real>0.33725491166114807</real>
</dict>
<key>Ansi 5 Color</key>
<dict>
<key>Blue Component</key>
<real>0.99607843160629272</real>
<key>Green Component</key>
<real>0.32941177487373352</real>
<key>Red Component</key>
<real>0.54901963472366333</real>
</dict>
<key>Ansi 6 Color</key>
<dict>
<key>Blue Component</key>
<real>0.34117648005485535</real>
<key>Green Component</key>
<real>0.32941177487373352</real>
<key>Red Component</key>
<real>0.27450981736183167</real>
</dict>
<key>Ansi 7 Color</key>
<dict>
<key>Blue Component</key>
<real>0.7764706015586853</real>
<key>Green Component</key>
<real>0.80000001192092896</real>
<key>Red Component</key>
<real>0.80000001192092896</real>
</dict>
<key>Ansi 8 Color</key>
<dict>
<key>Blue Component</key>
<real>0.32941177487373352</real>
<key>Green Component</key>
<real>0.32549020648002625</real>
<key>Red Component</key>
<real>0.31372550129890442</real>
</dict>
<key>Ansi 9 Color</key>
<dict>
<key>Blue Component</key>
<real>0.58431375026702881</real>
<key>Green Component</key>
<real>0.3490196168422699</real>
<key>Red Component</key>
<real>1</real>
</dict>
<key>Background Color</key>
<dict>
<key>Blue Component</key>
<real>0.090000003576278687</real>
<key>Green Component</key>
<real>0.090000003576278687</real>
<key>Red Component</key>
<real>0.090000003576278687</real>
</dict>
<key>Bold Color</key>
<dict>
<key>Blue Component</key>
<real>1</real>
<key>Green Component</key>
<real>1</real>
<key>Red Component</key>
<real>1</real>
</dict>
<key>Cursor Color</key>
<dict>
<key>Blue Component</key>
<real>0.12078898400068283</real>
<key>Green Component</key>
<real>0.59354037046432495</real>
<key>Red Component</key>
<real>0.99016290903091431</real>
</dict>
<key>Cursor Text Color</key>
<dict>
<key>Blue Component</key>
<real>0.0</real>
<key>Green Component</key>
<real>0.0</real>
<key>Red Component</key>
<real>0.0</real>
</dict>
<key>Foreground Color</key>
<dict>
<key>Blue Component</key>
<real>0.62745100259780884</real>
<key>Green Component</key>
<real>0.62745100259780884</real>
<key>Red Component</key>
<real>0.62745100259780884</real>
</dict>
<key>Selected Text Color</key>
<dict>
<key>Blue Component</key>
<real>1</real>
<key>Green Component</key>
<real>1</real>
<key>Red Component</key>
<real>1</real>
</dict>
<key>Selection Color</key>
<dict>
<key>Blue Component</key>
<real>0.30241936445236206</real>
<key>Green Component</key>
<real>0.30241936445236206</real>
<key>Red Component</key>
<real>0.30241936445236206</real>
</dict>
</dict>
</plist>
# mokuplam zsh theme by mieky, https://github.com/mieky
# originally based on 'blinks' zsh theme, https://github.com/blinks
function _prompt_char() {
if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then
echo "%{%F{blue}%}±%{%f%k%b%}"
else
echo ' '
fi
}
ZSH_THEME_GIT_PROMPT_PREFIX="[%{%b%F{blue}%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{%f%k%b%B%F{black}%}] "
ZSH_THEME_GIT_PROMPT_DIRTY=" %{%F{red}%}*%{%f%k%b%}"
ZSH_THEME_GIT_PROMPT_CLEAN=""
LSCOLORS="gxfxcxdxbxegedabagacax"
PROMPT='%{%K{black}%B%F{green}%}%n%{%B%F{red}%} %~%{%b%F{black}%} $(git_prompt_info)%K{black}%{%f%k%b%} %B%F{green}%#%k%b '
# thayer.theme for irssi by miek (http://mike.fi/)
#
# these characters are automatically replaced with specified color
# (dark grey by default)
replaces = { "[]=" = "%c$0-%n"; };
abstracts = {
##
## generic
##
# text to insert at the beginning of each non-message line
line_start = "%g//%n ";
# timestamp styling, nothing by default
timestamp = "%b$0-%n";
# any kind of text that needs hilighting, default is to bold
hilight = "%_$0-%_";
# any kind of error message, default is bright red
error = "%R$0-%n";
# channel name is printed
channel = "%G$0-%n";
# nick is printed
nick = "%_$0-%_";
# nick host is printed
nickhost = "[$0-]";
# server name is printed
server = "%_$0-%_";
# some kind of comment is printed
comment = "[%G$0-%n]";
# reason for something is printed (part, quit, kick, ..)
reason = "{comment $0-}";
# mode change is printed ([+o nick])
mode = "{comment $0-}";
##
## channel specific messages
##
# highlighted nick/host is printed (joins)
channick_hilight = "%G$0-%n";
chanhost_hilight = "{nickhost %g$0-%n}";
# nick/host is printed (parts, quits, etc.)
channick = "%G$0-%n";
chanhost = "%K{nickhost $0-}";
# highlighted channel name is printed
channelhilight = "%G$0-%n";
# ban/ban exception/invite list mask is printed
ban = "%r$0-%n";
##
## messages
##
# the basic styling of how to print message, $0 = nick mode, $1 = nick
#msgnick = "%_$0%_$1- %|";
msgnick = "%G$0%p$1- %|";
# separator = "%_:%_";
separator = "%n";
# message from you is printed. "msgownnick" specifies the styling of the
# nick ($0 part in msgnick) and "ownmsgnick" specifies the styling of the
# whole line.
# Example1: You want the message text to be green:
# ownmsgnick = "{msgnick $0 $1-}%g";
# Example2.1: You want < and > chars to be yellow:
# ownmsgnick = "%Y{msgnick $0 $1-%Y}%n";
# (you'll also have to remove <> from replaces list above)
# Example2.2: But you still want to keep <> grey for other messages:
# pubmsgnick = "%K{msgnick $0 $1-%K}%n";
# pubmsgmenick = "%K{msgnick $0 $1-%K}%n";
# pubmsghinick = "%K{msgnick $1 $0$2-%n%K}%n";
# ownprivmsgnick = "%K{msgnick $0-%K}%n";
# privmsgnick = "%K{msgnick %R$0-%K}%n";
# $0 = nick mode, $1 = nick
ownmsgnick = "{msgnick $0%_ $1-{separator}}%n";
ownnick = "%r$0-%n";
# public message in channel, $0 = nick mode, $1 = nick
pubmsgnick = "{msgnick $0%_ %p$1-%n{separator}}";
pubnick = "$0-%n";
# public message in channel meant for me, $0 = nick mode, $1 = nick
pubmsgmenick = "{msgnick %W$0 %c$1-{separator}}%W";
menick = "%c$0-%n";
# public highlighted message in channel
# $0 = highlight color, $1 = nick mode, $2 = nick
pubmsghinick = "{msgnick %w$1 %W$2-%n{separator}}%n";
# channel name is printed with message
msgchannel = "%K:%c$0-%n";
# private message, $0 = nick, $1 = host
privmsg = "%Y$0%n %g<-%n ";
# private message from you, $0 = "msg", $1 = target nick
ownprivmsg = "%y$1%n %R->%n ";
# own private message in query
ownprivmsgnick = "{msgnick $0-}";
ownprivnick = "%g$0-%n{separator}";
# private message in query
privmsgnick = "{msgnick %c$0-%n{separator}}";
##
## Actions (/ME stuff)
##
# used internally by this theme
#action_core = " %R * %C$0-%n";
action_core = "%Y$0-%W/%n";
# generic one that's used by most actions
action = "{action_core $0-} ";
# own action, both private/public
ownaction = "{action $0-}";
# own action with target, both private/public
ownaction_target = "{action_core $0}%K:%c$1%n ";
# private action sent by others
pvtaction = " (%R* %c$0-%n ";
pvtaction_query = "{action $0-}";
# public action sent by others
pubaction = "{action $0-}";
##
## other IRC events
##
# notices
ownnotice = "[%r$0%K(%R$1-%K)]%n ";
notice = "%K-%M$0-%K-%n ";
pubnotice_channel = "%K:%m$0-";
pvtnotice_host = "%K(%m$0-%K)";
servernotice = "%g!$0-%n ";
# CTCPs
ownctcp = "[%c$0%K(%C$1-%K)] ";
ctcp = "%g$0-%n";
# wallops
wallop = "%W$0-%n: ";
wallop_nick = "%n$0-";
wallop_action = "%W * $0-%n ";
# netsplits
netsplit = "%R$0-%n";
netjoin = "%C$0-%n";
# /names list
names_nick = "[%_$0%_%c$1-%n] ";
names_users = "[%c$0-%n]%n";
names_channel = "%C$0-%n";
# DCC
dcc = "%g$0-%n";
dccfile = "%_$0-%_";
# DCC chat, own msg/action
dccownmsg = "[%r$0%K($1-%K)%n] ";
dccownnick = "%R$0-%n";
dccownaction = "{action $0-}";
dccownaction_target = "{action_core $0}%K:%c$1%n ";
# DCC chat, others
dccmsg = "[%G$1-%K(%g$0%K)%n] ";
dccquerynick = "%c$0-%n";
dccaction = "%c$0-%n%y*%n %|";
##
## statusbar
##
# default background for all statusbars
sb_background = "%0";
# default backround for "default" statusbar group
#sb_default_bg = "%4";
# background for prompt / input line
sb_prompt_bg = "%n";
# background for info statusbar
sb_info_bg = "%8";
# background for topicbar (same default)
# sb_topic_bg = "%4";
# text at the beginning of statusbars. sb-item already puts
# space there,so we don't use anything by default.
sbstart = "";
# text at the end of statusbars. Use space so that it's never
# used for anything.
sbend = " ";
prompt = " [$*] ";
# sb = " %c[%n$*%c]%n";
sb = " %W[%G$*%W]%n";
sbmode = "(%c+%n$*)";
sbaway = " %R(%1%WAWAY%n%R)%n";
sbservertag = ":$0 (change with ^X)";
# activity in statusbar
# ',' separator
sb_act_sep = "%c$*";
# normal text
sb_act_text = "%c$*";
# public message
sb_act_msg = "%W$*";
# hilight
sb_act_hilight = "%C$*";
# hilight with specified color, $0 = color, $1 = text
sb_act_hilight_color = "$0$1-%n";
};
formats = {
"fe-common/core" = {
pubmsg = "{pubmsgnick $2 {pubnick $[-12]0}}$1";
own_msg = "{ownmsgnick $2 {ownnick $[-12]0}}$1";
own_msg_channel = "{ownmsgnick $3 {ownnick $[-12]0}{msgchannel $1}}$2";
pubmsg_me = "{pubmsgmenick $2 {menick $[-12]0}}$1";
pubmsg_me_channel = "{pubmsgmenick $3 {menick $[-12]0}{msgchannel $1}}$2";
pubmsg_hilight = "{pubmsghinick $0 $3 $[-12]1}$2";
pubmsg_hilight_channel = "{pubmsghinick $0 $4 $[-12]1{msgchannel $2}}$3";
pubmsg_channel = "{pubmsgnick $3 {pubnick $[-12]0}{msgchannel $1}}$2";
own_msg_private_query = "{ownprivmsgnick {ownprivnick $[-13]2}}$1";
msg_private_query = "{privmsgnick $[-13]0}$2";
};
"fe-common/irc" = {
own_action = "{ownaction {ownnick $[-13]0}}$1";
action_public = "{pubaction {pubnick $[-13]0}}$1";
action_private_query = "{pvtaction_query {pvnick $[-13]0}}$2";
};
"fe-common/irc/dcc" = {
own_dcc_query = "{ownmsgnick {dccownquerynick $[-13]0}}$2";
dcc_msg_query = "{privmsgnick $[-13]0}$1";
own_dcc_action_query = "{dccownaction %R$[-13]0%n}$2";
action_dcc_query = "{dccaction {pvnick $[-13]0}}$1";
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment