Browse Source

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.
Marc Cornellà 9 years ago
parent
commit
be10229659
1 changed files with 1 additions and 2 deletions
  1. 1 2
      plugins/fbterm/fbterm.plugin.zsh

+ 1 - 2
plugins/fbterm/fbterm.plugin.zsh

@@ -2,7 +2,6 @@
 
 if (( ${+commands[fbterm]} )); then
 	if [[ "$TTY" = /dev/tty* ]] ; then
-		fbterm
-		exit
+		fbterm && exit
 	fi
 fi