1
0
Fork 0

special color for special hostname

This commit is contained in:
Massaki Archambault 2018-10-25 19:20:38 -04:00
parent 16f294cbf2
commit 675f8d9c56
1 changed files with 15 additions and 1 deletions

View File

@ -41,5 +41,19 @@ function get_hostname_color () {
done
printf "$col"
}
export ZSH_THEME_HOSTNAME_COLOR="$(get_hostname_color)"
case "$HOST" in
"devbox")
ZSH_THEME_HOSTNAME_COLOR="002"
;;
"pallet")
ZSH_THEME_HOSTNAME_COLOR="004"
;;
"pewter")
ZSH_THEME_HOSTNAME_COLOR="005"
;;
*)
ZSH_THEME_HOSTNAME_COLOR="$(get_hostname_color)"
;;
esac
export ZSH_THEME_HOSTNAME_COLOR
unset -f get_hostname_color