aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-12-11 11:05:13 -0200
committerSilvio Rhatto <rhatto@riseup.net>2014-12-11 11:05:13 -0200
commit77eb9da9fafe5f17611fd6a96e82eeed0c6cb49b (patch)
treeb058908603256725220e8144ac58d1c883763c14
parentad1a39d82d3c707f02d4660d8028d05b8ec70b6b (diff)
downloadtermplex-77eb9da9fafe5f17611fd6a96e82eeed0c6cb49b.tar.gz
termplex-77eb9da9fafe5f17611fd6a96e82eeed0c6cb49b.tar.bz2
Test xtitle availability on window_title
-rwxr-xr-xshell4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell b/shell
index 4c4321a..9ecac83 100755
--- a/shell
+++ b/shell
@@ -14,7 +14,9 @@ function window_title {
if [ -n "$STY" ]; then
screen -p $WINDOW -X title "$*"
else
- xtitle "$*"
+ if which xtitle &> /dev/null; then
+ xtitle "$*"
+ fi
fi
}