Mercurial > hg > zsh-env
view profile @ 158:08620c68ca55
add a default .profile which runs a zsh. This comes in handy on systems where you cannot chsh
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sat, 14 Dec 2019 06:13:05 +0100 |
parents | a7654f2b4170 |
children |
line wrap: on
line source
# # 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