Add script to set Xterm/Tmux pane title

vimbundler
nirenjan 2013-01-21 13:54:57 -08:00
parent a3f0b88de4
commit 2407365328
1 changed files with 10 additions and 0 deletions

10
scripts/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