Mercurial > hg > zsh-env
annotate zshrc-epm @ 141:fe986adeadeb
add more helper functions
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Thu, 05 Jul 2018 04:58:14 +0200 |
parents | 4a181ed71eb5 |
children | 279d1363e918 |
rev | line source |
---|---|
46 | 1 # |
2 # zshrc-epm: custom shell environment for EPM | |
3 # | |
4 | |
5 export EDITOR="nano" | |
6 export JAVA_HOME=/exentra/java | |
7 export PATH="$JAVA_HOME/bin":"$PATH" | |
8 | |
9 . /etc/profile.d/exentra.sh | |
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 | 17 alias fw="sudo iptables --line-numbers -vnL" |
50 | 18 alias sex="screen -r exentra" |
46 | 19 alias sue="sudo -u exentra -i" |