diff options
author | Andrew Janke <andrew@apjanke.net> | 2015-09-23 18:53:05 -0400 |
---|---|---|
committer | Andrew Janke <andrew@apjanke.net> | 2015-09-23 18:53:05 -0400 |
commit | 96ff86142e9037e707f9cde8ab69e0425a0559c6 (patch) | |
tree | 217cb5e2b4a1c55afec79984c3c3c0a9efe2bf69 /plugins/fbterm | |
parent | 502f08b5e19716d43a7ec8b006178a7b017f68cd (diff) | |
parent | 76a26a2a59d8c6d0f65a4426cdb93920e255aea7 (diff) | |
download | zsh-96ff86142e9037e707f9cde8ab69e0425a0559c6.tar.gz zsh-96ff86142e9037e707f9cde8ab69e0425a0559c6.tar.bz2 zsh-96ff86142e9037e707f9cde8ab69e0425a0559c6.zip |
Merge branch 'master' into installer-cygwin-support-3
Conflicts:
tools/install.sh
Diffstat (limited to 'plugins/fbterm')
-rw-r--r-- | plugins/fbterm/fbterm.plugin.zsh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/fbterm/fbterm.plugin.zsh b/plugins/fbterm/fbterm.plugin.zsh index 4f0456016..bc2532092 100644 --- a/plugins/fbterm/fbterm.plugin.zsh +++ b/plugins/fbterm/fbterm.plugin.zsh @@ -1,6 +1,7 @@ # start fbterm automatically in /dev/tty* -if [[ $(tty|grep -o '/dev/tty') = /dev/tty ]] ; then - fbterm - exit +if (( ${+commands[fbterm]} )); then + if [[ "$TTY" = /dev/tty* ]] ; then + fbterm && exit + fi fi |