Check if fbterm is installed and use $TTY variable

master
Marc Cornellà 11 years ago
parent 3d5b3430fd
commit be5dcb8a59
  1. 4
      plugins/fbterm/fbterm.plugin.zsh

@ -1,6 +1,8 @@
# start fbterm automatically in /dev/tty* # start fbterm automatically in /dev/tty*
if [[ $(tty|grep -o '/dev/tty') = /dev/tty ]] ; then if (( ${+commands[fbterm]} )); then
if [[ "$TTY" = /dev/tty* ]] ; then
fbterm fbterm
exit exit
fi fi
fi

Loading…
Cancel
Save