From df0d55c3045ddd8800f19f46d1b6cc30141a3b67 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Sat, 24 Dec 2011 14:01:16 -0600 Subject: [PATCH] Add .term_colorpalette for customized ANSI colors in mintty --- .bash_profile | 7 +++++++ .term_colorpalette | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 .term_colorpalette diff --git a/.bash_profile b/.bash_profile index d963b4c..4ce8d2a 100644 --- a/.bash_profile +++ b/.bash_profile @@ -5,6 +5,13 @@ if [ -f ~/.bashrc ]; then source ~/.bashrc fi +# Change ANSI colors to Solarized-style colors +if [ "$UNAME" = "Cygwin" ]; then + if [ -f ~/.term_colorpalette ]; then + source ~/.term_colorpalette + fi +fi + # keychain keychain="$(type -P keychain)" test -n "$keychain" && { diff --git a/.term_colorpalette b/.term_colorpalette new file mode 100644 index 0000000..10cd429 --- /dev/null +++ b/.term_colorpalette @@ -0,0 +1,37 @@ +# Use Linux "set palette" escape sequence to customize ANSI colors in mintty +# http://groups.google.com/group/mintty-discuss/browse_thread/thread/33cb565e4f32f146 + +echo -n -e "\e]P0000000" +echo -n -e "\e]P1990000" +echo -n -e "\e]P24B8700" +echo -n -e "\e]P3A0A533" +echo -n -e "\e]P40032BD" +echo -n -e "\e]P5980094" +echo -n -e "\e]P6009A91" +echo -n -e "\e]P7B9C6CB" +echo -n -e "\e]P8454655" +echo -n -e "\e]P9DC322F" +echo -n -e "\e]PA72D631" +echo -n -e "\e]PBFEFF00" +echo -n -e "\e]PC268BD2" +echo -n -e "\e]PDE900E3" +echo -n -e "\e]PE00D8CC" +echo -e "\e]PFF8F6F4" + +# Solarized +#echo -n -e "\e]P0073642" +#echo -n -e "\e]P1DC322F" +#echo -n -e "\e]P2859900" +#echo -n -e "\e]P3B58900" +#echo -n -e "\e]P4268BD2" +#echo -n -e "\e]P5D33682" +#echo -n -e "\e]P62AA198" +#echo -n -e "\e]P7EEE8D5" +#echo -n -e "\e]P8002B36" +#echo -n -e "\e]P9CB4B16" +#echo -n -e "\e]PA586E75" +#echo -n -e "\e]PB657B83" +#echo -n -e "\e]PC839496" +#echo -n -e "\e]PD6C71C4" +#echo -n -e "\e]PE93A1A1" +#echo -n -e "\e]PFFDF6E3" -- 2.47.1