From e356f2ec38a7d8d40cdee95c22e04d4ab00f7792 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Mon, 20 Nov 2017 21:54:53 -0600 Subject: [PATCH] .bashrc: Add settitle_screen() vs settitle_window() helpers --- .bashrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 749f7c9..fdf26f9 100644 --- a/.bashrc +++ b/.bashrc @@ -269,9 +269,13 @@ alias hi='history | tail -20' alias rehash="hash -r" # set 'screen' window title -settitle() { +settitle_screen() { printf "\033k%s\033\\" "$@" } +# set 'xterm' window title +settitle_window() { + printf "\033]0;%s\007" "$@" +} # svn-wrapper alias svn=svn-wrapper -- 2.47.1