annotate profile @ 149:b0424aa12461

bye bye, nedit
author Dirk Olmes <dirk@xanthippe.ping.de>
date Mon, 12 Nov 2018 13:23:37 +0100
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