mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-12 08:50:08 +00:00
Check if fbterm is installed and use $TTY variable
This commit is contained in:
parent
3d5b3430fd
commit
be5dcb8a59
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||||
fbterm
|
if [[ "$TTY" = /dev/tty* ]] ; then
|
||||||
exit
|
fbterm
|
||||||
|
exit
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue