aboutsummaryrefslogtreecommitdiffstats
path: root/zsh
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-04-14 23:24:49 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-04-14 23:26:32 +0200
commit70e254153d495703edb5108bed340e8871c934de (patch)
treefec16861e208dff37c7dcc7fe0fae3a64500e7c0 /zsh
parent60f6d7717eb989fb53e18e5bc802455f9acef270 (diff)
downloaddotfiles-70e254153d495703edb5108bed340e8871c934de.tar.xz
zsh/prompt: use case
Diffstat (limited to 'zsh')
-rw-r--r--zsh/prompt.zsh18
1 files changed, 11 insertions, 7 deletions
diff --git a/zsh/prompt.zsh b/zsh/prompt.zsh
index 09f505e..f629be0 100644
--- a/zsh/prompt.zsh
+++ b/zsh/prompt.zsh
@@ -30,17 +30,21 @@ if (( UID == 0 )); then
$bg[light_blue]%B ^_^ %b%k '
else
- if [[ $HOST == "leeloo.kyriasis.com" ]]; then
- PROMPT='$bg[black] $fg[white]%m%f %k$bg[white]$fg[black] %~ %f%k
-$bg[light_blue]%B ^_^ %b %k'
-
- elif [[ $HOST == "theos.kyriasis.com" ]]; then
+ case $SHORTHOST in
+ "theos")
PROMPT='$bg[light_pink] $fg[white]%m%f %k$bg[white]$fg[light_pink] %~ %f%k
$bg[light_blue]%B ^_^ %b %k'
+ ;;
- elif [[ $HOST == "lucifer.kyriasis.com" ]]; then
+ "lucifer")
PROMPT='$bg[dark_gold] $fg[white]%m%f %k$bg[white]$fg[dark_gold] %~ %f%k
$bg[light_blue]%B ^_^ %b %k'
+ ;;
+
+ *)
+ PROMPT='$bg[black] $fg[white]%m%f %k$bg[white]$fg[black] %~ %f%k
+$bg[light_blue]%B ^_^ %b %k'
+ ;;
- fi
+ esac
fi