# HG changeset patch # User Dirk Olmes # Date 1529387416 -7200 # Node ID 4a181ed71eb5c6bf11bdb8d32cd29dae45a222d0 # Parent 7f20ec5f57263dceb1c1a43d1d7a67483597e7c7 use EX_LOCATION if defined, fall back to EPM_LOCATION diff -r 7f20ec5f5726 -r 4a181ed71eb5 zshrc-epm --- 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"