annotate profile @ 105:a7654f2b4170

add a default profile
author Dirk Olmes <dirk@xanthippe.ping.de>
date Thu, 17 Nov 2016 07:35:48 +0100
parents
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