Below is the file '.z' from this revision. You can also download the file.
HOME=`grep "^grahame:" /etc/passwd | awk -F: '{print $6}'`
if [ ! "$HOME" ]
then
HOME=~grahame
fi
export HOME
XAUTHORITY=`grep "^$USER:" /etc/passwd | awk -F: '{print $6}'`/.Xauthority
if [ ! "$HOME" ]
then
XAUTHORITY=~grahame/.Xauthority
fi
export XAUTHORITY
zsh