1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-06-26 01:07:11 -07:00

Merge branch 'master' of github.com:notwa/rc

This commit is contained in:
Connor Olding 2017-05-19 18:04:12 -07:00
commit c8c129bf22

View File

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