annotate profile @ 122:469f954e86c8

add an alias for nano
author Dirk Olmes <dirk@xanthippe.ping.de>
date Tue, 23 May 2017 17:27:29 +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