oh-my-zsh/plugins/fbterm/fbterm.plugin.zsh
Marc Cornellà be10229659 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.
2015-08-09 22:45:02 +02:00

8 lines
139 B
Bash

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