# HG changeset patch # User Dirk Olmes # Date 1479364548 -3600 # Node ID a7654f2b417043e842d7d37aa2ba3e48625e37e3 # Parent b3ffe2fba3ac2995f7b472559d1ba6df68fc80d4 add a default profile diff -r b3ffe2fba3ac -r a7654f2b4170 profile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/profile Thu Nov 17 07:35:48 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