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 ## ## BINDINGS ##
#################################### ####################################
# Change default Prefix key to Ctrl+Space # Change default Prefix key to Ctrl+Space unless this is an SSH session
unbind C-b if-shell -b '! [ "$SSH_CLIENT" ]' {
set -g prefix C-Space unbind C-b; set -g prefix C-Space; display 'Bind key: CTRL+SPACE'
}
# Reload config with Prefix+R # Reload config with Prefix+R
unbind r unbind r