From 3455457999fe8b83356b98caee4a11c7434efeeb Mon Sep 17 00:00:00 2001 From: Wryn Wagner Date: Thu, 29 Oct 2020 17:29:37 -0600 Subject: [PATCH] readonly mode shortcut --- tmux/n-bindings.tmux | 3 +++ tmux/tmux.conf | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tmux/n-bindings.tmux b/tmux/n-bindings.tmux index 32a6e9e..9a55abd 100644 --- a/tmux/n-bindings.tmux +++ b/tmux/n-bindings.tmux @@ -37,3 +37,6 @@ bind-key -n M-a send-prefix # rena[M]e session bind-key -n M-m command-prompt -I "#S" "rename-session '%%'" + +# toggle readonly session +bind-key -n M-r switch-client -r; diff --git a/tmux/tmux.conf b/tmux/tmux.conf index fe96a23..e6d22b5 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -6,7 +6,6 @@ set -s escape-time 0 # quick reload bind-key r source-file ~/.tmux.conf\; display "TMUX CONFIG RELOADED" -bind-key -n M-r source-file ~/.tmux.conf\; display "TMUX CONFIG RELOADED" # force color set -g default-terminal "tmux-256color"