# HG changeset patch # User Dirk Olmes # Date 1480697324 -3600 # Node ID 315142c3762bfde1c064a7575b5590910c6cc9ef # Parent a7654f2b417043e842d7d37aa2ba3e48625e37e3# Parent c228c63f1ba9042276002d6c4a69659107ee8db9 Automated merge with https://localhost/hg/zsh-env diff -r c228c63f1ba9 -r 315142c3762b profile --- /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