don't change tmux prefix keycombo on SSH sessions

This commit is contained in:
John Bowdre 2023-07-19 18:42:27 -05:00
parent b88e2c1ba9
commit 98b0d29a5e

View file

@ -2,9 +2,10 @@
## BINDINGS ##
####################################
# Change default Prefix key to Ctrl+Space
unbind C-b
set -g prefix C-Space
# Change default Prefix key to Ctrl+Space unless this is an SSH session
if-shell -b '! [ "$SSH_CLIENT" ]' {
unbind C-b; set -g prefix C-Space; display 'Bind key: CTRL+SPACE'
}
# Reload config with Prefix+R
unbind r