Easy way to reset all options to default in tmux(3.0)
tmux-reset is very similar to reset.css
or normalize.css
for CSS.
When you source this file through source-file
command, it resets all tmux options to their defaults.
It also unbinds all bound keys then applies the [default key bindings].
From clean state, you can apply any changes to your tmux as usual.
There are two ways to install and activate this script.
Add this line in your .tmux.conf
:
set -g @plugin 'hallazzang/tmux-reset'
-
Download tmux-reset file and put it in somewhere, for example,
~/.tmux/reset
:$ curl -Lo ~/.tmux/reset --create-dirs \ https://raw.githubusercontent.com/hallazzang/tmux-reset/3.0/tmux-reset
-
Include this line at the top of your
.tmux.conf
:source-file ~/.tmux/reset
Don't forget to change
~/.tmux/reset
above to actual location of downloaded file.
That's it. Now whenever you reload your .tmux.conf
,
you don't need to kill your tmux server and restart it to reset options.
If you're using other version of tmux, please check tags.
Here are currently supported versions: