Mercurial > hg > zsh-env
comparison 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 |
comparison
equal
deleted
inserted
replaced
104:b3ffe2fba3ac | 105:a7654f2b4170 |
---|---|
1 # | |
2 # Use this as .profile on systems where the default shell cannot be changed to zsh | |
3 # | |
4 if [ ! -z "$SSH_TTY" ]; then | |
5 # this is an interactive shell, replace the current shell with a zsh | |
6 if [ -f /bin/zsh ]; then | |
7 export SHELL=/bin/zsh | |
8 exec /bin/zsh -l | |
9 fi | |
10 fi |