Parcourir la source

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

pull/1/head
10sr il y a 10 ans
Parent
révision
07fec8c46e
2 fichiers modifiés avec 18 ajouts et 8 suppressions
  1. +17
    -7
      shrc
  2. +1
    -1
      tmux.conf.pl

+ 17
- 7
shrc Voir le fichier

@@ -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 Voir le fichier

@@ -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";


Chargement…
Annuler
Enregistrer