News for hackers. Stuff that matters.
Re:Fish: Finally, a command line shell for the 90s by Freaky on Wednesday June 06, 2012 @02:43PM (#4075424)
> I stopped using fish a while ago, when it would crash whenever I opened a console session (so I couldn't do anything when X didn't start)

This is why I launch my interactive shell from a failsafe /bin/sh instead of using chsh. If zsh ever messes up horribly, I end up back in a good old bog standard shell prompt.

Re:Fish: Finally, a command line shell for the 90s by graywh on Thursday June 07, 2012 @12:06PM (#4079688)
I was just wondering how you accomplish that.
Re:Fish: Finally, a command line shell for the 90s by Freaky on Thursday June 14, 2012 @12:17PM (#4112044)
I put this at the end of my ~/.profile:

    REALSHELLS="/usr/local/bin/zsh /usr/bin/zsh"
    for REALSHELL in $REALSHELLS; do
    	if [ -e $REALSHELL ]; then
    		if ! $REALSHELL -l; then
    			echo "$REALSHELL exit $?"
    		fi
    		echo "$SHELL exit in 1s, Ctrl-C to abort"
    		sleep 1 && exit
    	fi
    done
    echo "No shells in [$REALSHELLS] found, falling back to $SHELL"