Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
be5dcb8a
Commit
be5dcb8a
authored
Aug 09, 2015
by
Marc Cornellà
Browse files
Check if fbterm is installed and use $TTY variable
parent
3d5b3430
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/fbterm/fbterm.plugin.zsh
View file @
be5dcb8a
# 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment