From 5aab0ab64bb7191f83bcdbb7faae49f4ad781803 Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Wed, 27 Jan 2016 16:02:55 +0200 Subject: [PATCH] set term title function --- qcd_function | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qcd_function b/qcd_function index dd14545..a169bf3 100644 --- a/qcd_function +++ b/qcd_function @@ -347,3 +347,12 @@ function qbg { # Run a program quiet, and backgrounded "$@" &> /dev/null & } + +function set_term_title { + # set term in byobu/screen xterm etc.. + [ -z "$1" ] && { + echo -e '\033k'$HOSTNAME'\033\\' + } || { + echo -e '\033k'$1'\033\\' + } +}