Pārlūkot izejas kodu

change :: color according to hostname

pull/1/head
10sr pirms 12 gadiem
vecāks
revīzija
9e123e433e
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  1. +5
    -1
      bashrc

+ 5
- 1
bashrc Parādīt failu

@@ -520,7 +520,11 @@ then
__my_c1="\[\e[1;31m\]" # color for PWD
__my_c2="\[\e[0;36m\]" # color for user
__my_c3="\[\e[1;30m\]" # color for OLDPWD
__my_c4="\[\e[1;32m\]" # color for ::
if test "`hostname`" = arch-aspireone; then __my_c4="\[\e[1;34m\]"
elif test "`hostname`" = darwin-mba.local; then __my_c4="\[\e[1;33m\]"
elif test "`hostname`" = newkiwi; then __my_c4="\[\e[1;34m\]"
else __my_c4="\[\e[1;32m\]" # color for ::
fi
__my_cdef="\[\e[0m\]"
fi
_PS1="\


Notiek ielāde…
Atcelt
Saglabāt