Mercurial > hg > zsh-env
changeset 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 | 7f20ec5f5726 |
children | 6d1316bff6c0 |
files | zshrc-epm |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
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"