annotate profile @ 112:68edc97253fa

fix the path to grub.cfg
author Dirk Olmes <dirk@xanthippe.ping.de>
date Wed, 07 Dec 2016 10:08:42 +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