Skip to content

Instantly share code, notes, and snippets.

@lepht
Created May 13, 2014 06:02
Show Gist options
  • Save lepht/5f2b20aa7faab2fcff25 to your computer and use it in GitHub Desktop.
Save lepht/5f2b20aa7faab2fcff25 to your computer and use it in GitHub Desktop.
# original from @ttscoff http://brettterpstra.com/2014/05/11/making-my-tmux-life-easier/
# print a banner for the current window name within tmux
tm-win-banner() {
local winname sessionname
if [[ -n $TMUX ]]; then
sessionname=`tmux list-panes -F "#S"`
winname=`tmux display-message -p '#{window_name}'`
figlet -w `tput cols` -f graffiti "$sessionname:$winname"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment