Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tmux toggle prefix

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.

Usage

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}'

Installation

Tmux Plugin Manager

Add the plugin to your plugins list:

set -g @plugin 'Dave-Elec/tmux-toggle-prefix'

Then press prefix + I to install it.

Manual installation

Clone the repo:

$ git clone https://github.com/Dave-Elec/tmux-toggle-prefix.git ~/clone/path

Add this line to your .tmux.conf:

run-shell ~/clone/path/prefix_highlight.tmux

Reload TMUX environment with:

$ tmux source-file ~/.tmux.conf

License

License: GPL v3

About

Toogle prefix key for nested tmux sessions

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages