hallazzang / tmux-reset

Easy way to reset all options to default in tmux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tmux-reset

Easy way to reset all options to default in tmux(3.0)

What is it?

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.

Installation

There are two ways to install and activate this script.

Using TPM

Add this line in your .tmux.conf:

set -g @plugin 'hallazzang/tmux-reset'

Manual Installation

  1. 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
  2. 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.

Alternative Versions

If you're using other version of tmux, please check tags.

Here are currently supported versions:

About

Easy way to reset all options to default in tmux

License:MIT License


Languages

Language:Python 52.2%Language:Shell 47.8%