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.
This commit is contained in:
Marc Cornellà committed 2015-08-09 22:45:02 +02:00
1 parent be5dcb8a59
commit be10229659
1 file changed
+1 -2
+1 -2
View File
@@ -2,7 +2,6 @@
if (( ${+commands[fbterm]} )); then
if [[ "$TTY" = /dev/tty* ]] ; then
fbterm
exit
fbterm && exit
fi
fi