1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-22 13:50:09 +00:00

Check if fbterm is installed and use $TTY variable

This commit is contained in:
Marc Cornellà 2015-08-09 21:55:10 +02:00
parent 3d5b3430fd
commit be5dcb8a59

View file

@ -1,6 +1,8 @@
# 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
exit
fi
fi