Merge pull request #471 from ratberryjam/fix-set_xterm_title-for-osx

Fix for issue #108 that restores xterm plugin functionality on OS X.
pull/526/head
Nils Winkler 2015-07-20 09:57:19 +02:00
commit 4b66fec9da
1 changed files with 1 additions and 9 deletions

View File

@ -1,17 +1,9 @@
# This plugin is known to cause issues on OS X with the evaluation of
# colors. Please read [issue 108] for more information.
#
# You can manually turn this on by symlinking it into your
# plugins/enabled/ directory.
#
# [issue 108]: https://github.com/revans/bash-it/issues/108
cite about-plugin
about-plugin 'automatically set your xterm title with host and location info'
set_xterm_title () {
local title="$1"
echo -ne "\e]0;$title\007"
echo -ne "\033]0;$title\007"
}