#!/bin/sh # vim: set sw=4 ts=4 et: help() { cat <<HELP xtitlebar -- change the name of an xterm, gnome-terminal or kde konsole USAGE: xtitlebar [-h] "string_for_titlebar" OPTIONS: -h this help text EXAMPLE: xtitlebar "cvs" HELP exit 0 } [ -z "$1" ] && help [ "$1" = "-h" ] && help # sent the escape sequence to change the xterm title bar: echo -e "\033]0;$1\007" #