From 1c7439c4554b29476c8cf6a3c192d8a8a227d1d0 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Fri, 25 Jan 2013 22:58:35 -0600 Subject: [PATCH] .mintty: Move color-schemes to ~/.mintty/colors Remove ~/.term_colorpalette and introduce ~/.mintty/colors/*.sh instead. This allows tracking multiple different color schemes. --- .bash_profile | 6 ++-- .mintty/colors/default.sh | 21 ++++++++++++ .mintty/colors/solarized-alt.sh | 21 ++++++++++++ .mintty/colors/solarized-dark.sh | 22 +++++++++++++ .mintty/colors/solarized-light.sh | 22 +++++++++++++ .term_colorpalette | 54 ------------------------------- 6 files changed, 88 insertions(+), 58 deletions(-) create mode 100644 .mintty/colors/default.sh create mode 100644 .mintty/colors/solarized-alt.sh create mode 100644 .mintty/colors/solarized-dark.sh create mode 100644 .mintty/colors/solarized-light.sh delete mode 100644 .term_colorpalette diff --git a/.bash_profile b/.bash_profile index 4ce8d2a..1947c3b 100644 --- a/.bash_profile +++ b/.bash_profile @@ -5,11 +5,9 @@ if [ -f ~/.bashrc ]; then source ~/.bashrc fi -# Change ANSI colors to Solarized-style colors +# Set mintty color-palette if [ "$UNAME" = "Cygwin" ]; then - if [ -f ~/.term_colorpalette ]; then - source ~/.term_colorpalette - fi + source ~/.mintty/colors/solarized-alt.sh fi # keychain diff --git a/.mintty/colors/default.sh b/.mintty/colors/default.sh new file mode 100644 index 0000000..f92f4e8 --- /dev/null +++ b/.mintty/colors/default.sh @@ -0,0 +1,21 @@ +# default +echo -ne '\e]4;0;#000000\a' # black +echo -ne '\e]4;1;#BF0000\a' # red +echo -ne '\e]4;2;#00BF00\a' # green +echo -ne '\e]4;3;#BFBF00\a' # yellow +echo -ne '\e]4;4;#0000BF\a' # blue +echo -ne '\e]4;5;#BF00BF\a' # magenta +echo -ne '\e]4;6;#00BFBF\a' # cyan +echo -ne '\e]4;7;#BFBFBF\a' # white (light grey) +echo -ne '\e]4;8;#404040\a' # bold black (dark grey) +echo -ne '\e]4;9;#FF4040\a' # bold red +echo -ne '\e]4;10;#40FF40\a' # bold green +echo -ne '\e]4;11;#FFFF40\a' # bold yellow +echo -ne '\e]4;12;#6060FF\a' # bold blue +echo -ne '\e]4;13;#FF40FF\a' # bold magenta +echo -ne '\e]4;14;#40FFFF\a' # bold cyan +echo -ne '\e]4;15;#FFFFFF\a' # bold white + +echo -ne '\e]10;#C0C0C0\a' # foreground +echo -ne '\e]11;#000000\a' # background +echo -ne '\e]12;#00FF00\a' # cursor diff --git a/.mintty/colors/solarized-alt.sh b/.mintty/colors/solarized-alt.sh new file mode 100644 index 0000000..1f7c81f --- /dev/null +++ b/.mintty/colors/solarized-alt.sh @@ -0,0 +1,21 @@ +# solarized-inspired ANSI colors +echo -ne '\e]4;0;#020303\a' # black +echo -ne '\e]4;1;#990000\a' # red +echo -ne '\e]4;2;#4B8700\a' # green +echo -ne '\e]4;3;#A0A533\a' # yellow +echo -ne '\e]4;4;#0A4BFF\a' # blue +echo -ne '\e]4;5;#980094\a' # magenta +echo -ne '\e]4;6;#009A91\a' # cyan +echo -ne '\e]4;7;#8AA0A8\a' # white (light grey) +echo -ne '\e]4;8;#4C4D5D\a' # bold black (dark grey) +echo -ne '\e]4;9;#DC322F\a' # bold red +echo -ne '\e]4;10;#72D631\a' # bold green +echo -ne '\e]4;11;#FEFF00\a' # bold yellow +echo -ne '\e]4;12;#268BD2\a' # bold blue +echo -ne '\e]4;13;#E900E3\a' # bold magenta +echo -ne '\e]4;14;#00D8CC\a' # bold cyan +echo -ne '\e]4;15;#F8F6F4\a' # bold white + +echo -ne '\e]10;#A0B4B4\a' # foreground +echo -ne '\e]11;#041623\a' # background +echo -ne '\e]12;#00FF00\a' # cursor diff --git a/.mintty/colors/solarized-dark.sh b/.mintty/colors/solarized-dark.sh new file mode 100644 index 0000000..4029450 --- /dev/null +++ b/.mintty/colors/solarized-dark.sh @@ -0,0 +1,22 @@ +# solarized dark +# (https://github.com/karlin/mintty-colors-solarized) +echo -ne '\e]4;0;#073642\a' # black +echo -ne '\e]4;1;#dc322f\a' # red +echo -ne '\e]4;2;#859900\a' # green +echo -ne '\e]4;3;#b58900\a' # yellow +echo -ne '\e]4;4;#268bd2\a' # blue +echo -ne '\e]4;5;#d33682\a' # magenta +echo -ne '\e]4;6;#2aa198\a' # cyan +echo -ne '\e]4;7;#eee8d5\a' # white (light grey really) +echo -ne '\e]4;8;#002b36\a' # bold black (i.e. dark grey) +echo -ne '\e]4;9;#cb4b16\a' # bold red +echo -ne '\e]4;10;#586e75\a' # bold green +echo -ne '\e]4;11;#657b83\a' # bold yellow +echo -ne '\e]4;12;#839496\a' # bold blue +echo -ne '\e]4;13;#6c71c4\a' # bold magenta +echo -ne '\e]4;14;#93a1a1\a' # bold cyan +echo -ne '\e]4;15;#fdf6e3\a' # bold white + +echo -ne '\e]10;#eee8d5\a' # foreground +echo -ne '\e]11;#002b36\a' # background +echo -ne '\e]12;#859900\a' # cursor diff --git a/.mintty/colors/solarized-light.sh b/.mintty/colors/solarized-light.sh new file mode 100644 index 0000000..5b9260c --- /dev/null +++ b/.mintty/colors/solarized-light.sh @@ -0,0 +1,22 @@ +# solarized light +# (https://github.com/karlin/mintty-colors-solarized) +echo -ne '\e]4;0;#073642\a' # black +echo -ne '\e]4;1;#dc322f\a' # red +echo -ne '\e]4;2;#859900\a' # green +echo -ne '\e]4;3;#b58900\a' # yellow +echo -ne '\e]4;4;#268bd2\a' # blue +echo -ne '\e]4;5;#d33682\a' # magenta +echo -ne '\e]4;6;#2aa198\a' # cyan +echo -ne '\e]4;7;#eee8d5\a' # white (light grey really) +echo -ne '\e]4;8;#002b36\a' # bold black (i.e. dark grey) +echo -ne '\e]4;9;#cb4b16\a' # bold red +echo -ne '\e]4;10;#586e75\a' # bold green +echo -ne '\e]4;11;#657b83\a' # bold yellow +echo -ne '\e]4;12;#839496\a' # bold blue +echo -ne '\e]4;13;#6c71c4\a' # bold magenta +echo -ne '\e]4;14;#93a1a1\a' # bold cyan +echo -ne '\e]4;15;#fdf6e3\a' # bold white + +echo -ne '\e]10;#586e75\a' # foreground +echo -ne '\e]11;#fdf6e3\a' # background +echo -ne '\e]12;#eee8d5\a' # cursor diff --git a/.term_colorpalette b/.term_colorpalette deleted file mode 100644 index c599315..0000000 --- a/.term_colorpalette +++ /dev/null @@ -1,54 +0,0 @@ -# Use Linux "set palette" escape sequence to customize ANSI colors in mintty -# http://groups.google.com/group/mintty-discuss/browse_thread/thread/33cb565e4f32f146 - -# (Solarized-inspired) -echo -n -e "\e]P0020303" # black -echo -n -e "\e]P1990000" # red -echo -n -e "\e]P24B8700" # green -echo -n -e "\e]P3A0A533" # yellow -echo -n -e "\e]P40A4BFF" # blue -echo -n -e "\e]P5980094" # magenta -echo -n -e "\e]P6009A91" # cyan -echo -n -e "\e]P78AA0A8" # white -echo -n -e "\e]P84C4D5D" # brblack -echo -n -e "\e]P9DC322F" # brred -echo -n -e "\e]PA72D631" # brgreen -echo -n -e "\e]PBFEFF00" # bryellow -echo -n -e "\e]PC268BD2" # brblue -echo -n -e "\e]PDE900E3" # brmagenta -echo -n -e "\e]PE00D8CC" # brcyan -echo -e "\e]PFF8F6F4" # brwhite - -## (Solarized) -## let s:base02 = "0" -#echo -n -e "\e]P0073642" -## let s:red = "1" -#echo -n -e "\e]P1DC322F" -## let s:green = "2" -#echo -n -e "\e]P2719E07" -## let s:yellow = "3" -#echo -n -e "\e]P3B58900" -## let s:blue = "4" -#echo -n -e "\e]P4268BD2" -## let s:magenta = "5" -#echo -n -e "\e]P5D33682" -## let s:cyan = "6" -#echo -n -e "\e]P62AA198" -## let s:base2 = "7" -#echo -n -e "\e]P7EEE8D5" -## let s:base03 = "8" -#echo -n -e "\e]P8002B36" -## let s:orange = "9" -#echo -n -e "\e]P9CB4B16" -## let s:base01 = "10" -#echo -n -e "\e]PA586E75" -## let s:base00 = "11" -#echo -n -e "\e]PB657B83" -## let s:base0 = "12" -#echo -n -e "\e]PC839496" -## let s:violet = "13" -#echo -n -e "\e]PD6C71C4" -## let s:base1 = "14" -#echo -n -e "\e]PE93A1A1" -## let s:base3 = "15" -#echo -n -e "\e]PFFDF6E3" -- 2.47.1