Skip to content

Instantly share code, notes, and snippets.

@ethagnawl
Created June 7, 2020 13:29
Show Gist options
  • Save ethagnawl/db27bba3c4cccdc30ade2a0c54f49723 to your computer and use it in GitHub Desktop.
Save ethagnawl/db27bba3c4cccdc30ade2a0c54f49723 to your computer and use it in GitHub Desktop.
tmux pane titles
# tmux config file
# the rest of your config file ...
# This example creates a variable named `custom_pane_title` which will be
# displayed if and only if it has been set -- in this case by by your
# tmuxinator pane commands.
# This feature doesn't seem to be documented, otherwise I'd provide a link.
# I _believe_ this feature requires tmux >= 3.0
set -g pane-border-format "#{pane_index}#{?@custom_pane_title,:#{@custom_pane_title},}:#{pane_title}"
tmux set-option -p -t pane-name:0.0 @custom_pane_title "vim" && vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment