aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-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
}