diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-12-11 11:05:13 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-12-11 11:05:13 -0200 |
commit | 77eb9da9fafe5f17611fd6a96e82eeed0c6cb49b (patch) | |
tree | b058908603256725220e8144ac58d1c883763c14 | |
parent | ad1a39d82d3c707f02d4660d8028d05b8ec70b6b (diff) | |
download | termplex-77eb9da9fafe5f17611fd6a96e82eeed0c6cb49b.tar.gz termplex-77eb9da9fafe5f17611fd6a96e82eeed0c6cb49b.tar.bz2 |
Test xtitle availability on window_title
-rwxr-xr-x | shell | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 } |