Skip to content

tmux plugin for better remote nested tmux sessions

License

Notifications You must be signed in to change notification settings

danyim/tmux-remote

Repository files navigation

tmux-remote

Build Status

tmux-remote is a simple plugin that allows for toggling your tmux session's keybindings. This is especially useful when in nested remote tmux sessions that use the same prefix key as the host.

Tested and working macOS and Linux.

Installation

Install with TPM

Install using tpm (tmux Plugin Manager)

By adding the following in your .tmux.conf:

set -g @plugin 'danyim/tmux-remote'

Then hit prefix + I to fetch the plugin and source it.

Manual Install

Clone the repo:

$ git clone https://github.com/danyim/tmux-remote

Add this line to the bottom of .tmux.conf:

run-shell ~/path/to/tmux-remote/remote.tmux

Then reload your tmux environment with $ tmux source-file ~/.tmux.conf.

Usage

After installing the plugin, simply press F12 to toggle remote-mode on and off.

Key Action
F10 Turns on remote mode
F11 Turns off remote mode
F12 Toggles the remote mode

Options

# Change the default on keybinding (F10)
setw -g @remote-on-key F10
# Change the default off keybinding (F11)
setw -g @remote-off-key F11
# Change the default toggle keybinding (F12)
setw -g @remote-toggle-key F12

Testing

Basic tests have been created with tmux-test. To run tests:

> ./run_tests

Resources

License

MIT

About

tmux plugin for better remote nested tmux sessions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages