view profile @ 127:4c87719f258c

Avoid complaining about compinit when running as sudo
author Dirk Olmes <dirk.olmes@codedo.de>
date Fri, 16 Feb 2018 02:20:37 +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