annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
46
1cbbe8b41622 zshrc for EPM
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
1 #
1cbbe8b41622 zshrc for EPM
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
2 # zshrc-epm: custom shell environment for EPM
1cbbe8b41622 zshrc for EPM
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
3 #
1cbbe8b41622 zshrc for EPM
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4
1cbbe8b41622 zshrc for EPM
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
5 export EDITOR="nano"
1cbbe8b41622 zshrc for EPM
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6 export JAVA_HOME=/exentra/java
1cbbe8b41622 zshrc for EPM
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
7 export PATH="$JAVA_HOME/bin":"$PATH"
1cbbe8b41622 zshrc for EPM
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
8
1cbbe8b41622 zshrc for EPM
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
9 . /etc/profile.d/exentra.sh
1cbbe8b41622 zshrc for EPM
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
10
133
4a181ed71eb5 use EX_LOCATION if defined, fall back to EPM_LOCATION
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 130
diff changeset
11 # EPM_LOCATION/EX_LOCATION is set through /etc/profile.d/exentra.sh
4a181ed71eb5 use EX_LOCATION if defined, fall back to EPM_LOCATION
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 130
diff changeset
12 if [[ "$EX_LOCATION" != "" ]]; then
4a181ed71eb5 use EX_LOCATION if defined, fall back to EPM_LOCATION
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 130
diff changeset
13 export PS1="%n@${EX_LOCATION}%# "
4a181ed71eb5 use EX_LOCATION if defined, fall back to EPM_LOCATION
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 130
diff changeset
14 else
4a181ed71eb5 use EX_LOCATION if defined, fall back to EPM_LOCATION
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 130
diff changeset
15 export PS1="%n@${EPM_LOCATION}%# "
4a181ed71eb5 use EX_LOCATION if defined, fall back to EPM_LOCATION
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 130
diff changeset
16 fi
46
1cbbe8b41622 zshrc for EPM
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
17 alias fw="sudo iptables --line-numbers -vnL"
50
d7dbed316e60 add alias
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 46
diff changeset
18 alias sex="screen -r exentra"
46
1cbbe8b41622 zshrc for EPM
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
19 alias sue="sudo -u exentra -i"