浏览代码

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à 8 年之前
父节点
当前提交
be10229659
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      plugins/fbterm/fbterm.plugin.zsh

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

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