Skip to content

Dave-Elec/tmux-toggle-prefix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages