Add script to set Xterm/Tmux pane title

master
nirenjan 2013-01-21 13:54:57 -08:00
parent cb88dd975e
commit 27c7871dfd
1 changed files with 10 additions and 0 deletions

10
settitle 100755
View File

@ -0,0 +1,10 @@
#!/bin/bash
# Set the Xterm/Tmux pane title
if [[ -z $TMUX ]]
then
echo -e "\033]0;$*\007"
else
echo -e "\033k$*\033\\"
fi