Procházet zdrojové kódy

update colors: this change is just a try, which may be reverted later

pull/1/head
10sr před 11 roky
rodič
revize
07fec8c46e
2 změnil soubory, kde provedl 18 přidání a 8 odebrání
  1. +17
    -7
      shrc
  2. +1
    -1
      tmux.conf.pl

+ 17
- 7
shrc Zobrazit soubor

@@ -1226,6 +1226,7 @@ __color_bg_light_gray="${__attr_beg}47${__attr_end}"

__attr_underline="${__attr_beg}4${__attr_end}"
__attr_reverse="${__attr_beg}7${__attr_end}"
__attr_bold="${__attr_beg}1${__attr_end}"

# NOTE: tput is another easy way to set colors and background
# For example, "$(tput setab 4)text$(tput sgr0)" print text with background
@@ -1233,14 +1234,23 @@ __attr_reverse="${__attr_beg}7${__attr_end}"

if test "$TERM" != dumb
then
__my_c1="$__color_brown" # color for PWD
__my_c2="$__color_cyan" # color for user and hostname
__my_c1="$__attr_bold$__attr_underline" # color for PWD
__my_c2="$__attr_bold$__attr_underline" # color for user and hostname
# color for ::
if test "`hostname`" = arch-aspireone; then __my_c4="$__color_light_blue"
elif test "`hostname`" = darwin-mba.local; then __my_c4="$__color_light_red"
elif test "`hostname`" = newkiwi; then __my_c4="$__color_light_purple"
else __my_c4="$__color_light_green"
fi
case "`hostname`" in
arch-aspireone)
__my_c4="$__color_light_blue"
;;
darwin-mba.local)
__my_c4="$__color_light_cyan"
;;
newkiwi)
__my_c4="$__color_light_purple"
;;
*)
__my_c4="$__color_light_green"
;;
esac
__my_c5="$__color_black$__color_bg_light_gray" # color for SCR
__my_cdef="$__color_default"
fi


+ 1
- 1
tmux.conf.pl Zobrazit soubor

@@ -9,7 +9,7 @@ my @tmux_setw_command = ("setw", "-g");

my %color_prefs = (
"arch-aspireone" => "blue,white",
"darwin-mba.local" => "red,white",
"darwin-mba.local" => "cyan,black",
"newkiwi" => "magenta,white"
);
my $color_def = "green,black";


Načítá se…
Zrušit
Uložit