# start fbterm automatically in /dev/tty*

if (( ${+commands[fbterm]} )); then
	if [[ "$TTY" = /dev/tty* ]] ; then
		fbterm
		exit
	fi
fi

# start fbterm automatically in /dev/tty*

if (( ${+commands[fbterm]} )); then
	if [[ "$TTY" = /dev/tty* ]] ; then
		fbterm && exit
	fi
fi

Exit only if the fbterm session closed correctly
Exit only if the fbterm session closed correctly

This prevents the previous behavior that exitted the zsh session
even if fbterm didn't start correctly.
