Mercurial > hg > zsh-env
changeset 109:315142c3762b
Automated merge with https://localhost/hg/zsh-env
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Fri, 02 Dec 2016 17:48:44 +0100 |
parents | a7654f2b4170 (diff) c228c63f1ba9 (current diff) |
children | 0896c2a1b094 |
files | |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/profile Fri Dec 02 17:48:44 2016 +0100 @@ -0,0 +1,10 @@ +# +# Use this as .profile on systems where the default shell cannot be changed to zsh +# +if [ ! -z "$SSH_TTY" ]; then + # this is an interactive shell, replace the current shell with a zsh + if [ -f /bin/zsh ]; then + export SHELL=/bin/zsh + exec /bin/zsh -l + fi +fi