summaryrefslogtreecommitdiff
path: root/plugins/fbterm
diff options
context:
space:
mode:
authorChris McCuller <cmcculler@salesforce.com>2015-09-21 22:19:15 -0400
committerChris McCuller <cmcculler@salesforce.com>2015-09-21 22:19:15 -0400
commite6ccd37b0563b4e7b34c41034766b9789e43ee5c (patch)
treec12c8c2c6437fd7d5d3ec5bff27634a80759b808 /plugins/fbterm
parent30ef85664822595e29acdbc840c45d5772d84b5d (diff)
parent76a26a2a59d8c6d0f65a4426cdb93920e255aea7 (diff)
downloadzsh-e6ccd37b0563b4e7b34c41034766b9789e43ee5c.tar.gz
zsh-e6ccd37b0563b4e7b34c41034766b9789e43ee5c.tar.bz2
zsh-e6ccd37b0563b4e7b34c41034766b9789e43ee5c.zip
Merge master (rebase being super annoying). Fix conflicts
Diffstat (limited to 'plugins/fbterm')
-rw-r--r--plugins/fbterm/fbterm.plugin.zsh7
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