Last active
November 4, 2020 09:07
-
-
Save sevenmaxis/2c7352c17c2b1a42cd8e8431e6d5f23b to your computer and use it in GitHub Desktop.
Automatically rename tmux window name for heroku session
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku(){ | |
windowname=$(tmux display-message -p '#W') | |
trap "{ tmux rename-window "$windowname" }" EXIT | |
tmux rename-window "heroku $*" | |
command heroku "$@" | |
tmux rename-window "$windowname" | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment