diff options
author | Marc Cornellà <marc.cornella@live.com> | 2015-08-09 21:56:02 +0200 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2015-08-09 22:45:02 +0200 |
commit | be10229659959a4ff455642e44fdaa5666e15ce3 (patch) | |
tree | 3d3dce5564508c389fe568a1bf0590d34ad14459 | |
parent | be5dcb8a59c795495318522522b92672886d4a58 (diff) | |
download | zsh-be10229659959a4ff455642e44fdaa5666e15ce3.tar.gz zsh-be10229659959a4ff455642e44fdaa5666e15ce3.tar.bz2 zsh-be10229659959a4ff455642e44fdaa5666e15ce3.zip |
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.
-rw-r--r-- | plugins/fbterm/fbterm.plugin.zsh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/fbterm/fbterm.plugin.zsh b/plugins/fbterm/fbterm.plugin.zsh index d60f0e27d..bc2532092 100644 --- a/plugins/fbterm/fbterm.plugin.zsh +++ b/plugins/fbterm/fbterm.plugin.zsh @@ -2,7 +2,6 @@ if (( ${+commands[fbterm]} )); then if [[ "$TTY" = /dev/tty* ]] ; then - fbterm - exit + fbterm && exit fi fi |