This is a plugin that generates a random name for your Tmux session when you do not specify one.
Installation with Tmux Plugin Manager.
Add the following line to your .tmux.conf
.
set -g @plugin 'pwnalone/tmux-name-generator'
Clone the repo.
git clone https://github.com/pwnalone/tmux-name-generator ~/.tmux/plugins/tmux-name-generator
Add the following line to your .tmux.conf
.
run ~/.tmux/plugins/tmux-name-generator/name_generator.tmux
That's it! Now, when you start a Tmux session without specifying the name, a random one should be generated for you.
# Enable/disable the lhs/rhs of the session name.
set -g @name_generator_use_lhs yes # lhs = adjective
set -g @name_generator_use_rhs yes # rhs = noun
# Set a custom separator for the lhs/rhs.
set -g @name_generator_sep '-'
The default wordlists were taken from Zellij. If you have your own wordlists that you would like to use, you can replace words/lhs.txt and words/rhs.txt on your local machine.