diff zshrc-epm @ 133:4a181ed71eb5

use EX_LOCATION if defined, fall back to EPM_LOCATION
author Dirk Olmes <dirk@xanthippe.ping.de>
date Tue, 19 Jun 2018 07:50:16 +0200
parents ca2b58d0a32f
children 279d1363e918
line wrap: on
line diff
--- a/zshrc-epm	Sun May 13 13:56:19 2018 +0200
+++ b/zshrc-epm	Tue Jun 19 07:50:16 2018 +0200
@@ -8,9 +8,12 @@
 
 . /etc/profile.d/exentra.sh
 
-# EPM_LOCATION is set through /etc/profile.d/exentra.sh
-export PS1="%n@${EX_LOCATION}%# "
-
+# EPM_LOCATION/EX_LOCATION is set through /etc/profile.d/exentra.sh
+if [[ "$EX_LOCATION" != "" ]]; then
+	export PS1="%n@${EX_LOCATION}%# "
+else
+	export PS1="%n@${EPM_LOCATION}%# "
+fi
 alias fw="sudo iptables --line-numbers -vnL"
 alias sex="screen -r exentra"
 alias sue="sudo -u exentra -i"