1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2025-02-05 07:43:22 -08:00

set color for sabotage host

This commit is contained in:
Connor Olding 2019-06-04 06:02:20 +00:00
parent 1e389e2d6f
commit d4edd77f5e

View file

@ -159,9 +159,10 @@ fi
# note: zsh adds a % symbol to newline-less output, so bash prompt is overkill
function {
local good='green'
[[ "$host" == "neobanshee" ]] && good='cyan'
[[ "$host" == "spectre" ]] && good='white'
[[ "$host" == "wraith" ]] && good='yellow'
[[ "$host" == neobanshee ]] && good='cyan'
[[ "$host" == spectre ]] && good='white'
[[ "$host" == wraith ]] && good='yellow'
[[ "$host" == sabotage ]] && good='magenta'
PROMPT='%{'$'\e''[10m%}%b%(?.%K{'"$good"'}.%K{red})%15F%#%f%k '
RPROMPT='%8F%h%b'
}