1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-24 17:44:22 +08:00
ohmyzsh/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