From 9e123e433ee443bcaa7b6513e4d3451abdd5fd5f Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 22 Aug 2012 22:20:24 +0900 Subject: [PATCH] change :: color according to hostname --- bashrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bashrc b/bashrc index f410649..0febdc9 100755 --- a/bashrc +++ b/bashrc @@ -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="\