annotate profile @ 141:fe986adeadeb

add more helper functions
author Dirk Olmes <dirk@xanthippe.ping.de>
date Thu, 05 Jul 2018 04:58:14 +0200
parents a7654f2b4170
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
105
a7654f2b4170 add a default profile
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
1 #
a7654f2b4170 add a default profile
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
2 # Use this as .profile on systems where the default shell cannot be changed to zsh
a7654f2b4170 add a default profile
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
3 #
a7654f2b4170 add a default profile
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4 if [ ! -z "$SSH_TTY" ]; then
a7654f2b4170 add a default profile
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
5 # this is an interactive shell, replace the current shell with a zsh
a7654f2b4170 add a default profile
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6 if [ -f /bin/zsh ]; then
a7654f2b4170 add a default profile
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
7 export SHELL=/bin/zsh
a7654f2b4170 add a default profile
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
8 exec /bin/zsh -l
a7654f2b4170 add a default profile
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
9 fi
a7654f2b4170 add a default profile
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
10 fi