From 77eb9da9fafe5f17611fd6a96e82eeed0c6cb49b Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 11 Dec 2014 11:05:13 -0200 Subject: Test xtitle availability on window_title --- shell | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 } -- cgit v1.2.3