From ad1a39d82d3c707f02d4660d8028d05b8ec70b6b Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 24 Oct 2014 16:36:39 -0200 Subject: Enhancing window_title() --- shell | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell b/shell index 0d6758e..4c4321a 100755 --- a/shell +++ b/shell @@ -12,9 +12,9 @@ COMMAND="$2" # http://stackoverflow.com/questions/899609/gnu-screen-run-script-that-sends-commands-to-the-screen-session-it-is-being-run function window_title { if [ -n "$STY" ]; then - screen -p $WINDOW -X title $1 + screen -p $WINDOW -X title "$*" else - xtitle $1 + xtitle "$*" fi } -- cgit v1.2.3