Plugin that dissables prefix key. Handy when you have nested remote tmux session via ssh inside a local tmux session. Instead of pressing prefix key twice, You can simply dissable the local prefix key with one key press when you are in the remote tmux session and restore the prefix key back when you are interacting with the local session.
Just define the key you want to use to toggle prefix as follows and pressing that key will toogle the prefix onn and off.
set -g @toggle_prefix "F12"If you want to see if the prefix is dissabled on the status bar, add #{toggle_prefix} to the left or right status bar.
set -g status-right '#{prefix_highlight}'Add the plugin to your plugins list:
set -g @plugin 'Dave-Elec/tmux-toggle-prefix'Then press prefix + I to install it.
Clone the repo:
$ git clone https://github.com/Dave-Elec/tmux-toggle-prefix.git ~/clone/pathAdd this line to your .tmux.conf:
run-shell ~/clone/path/prefix_highlight.tmuxReload TMUX environment with:
$ tmux source-file ~/.tmux.conf