Unable to change the prefix key
mendaxjerin opened this issue · comments
Jerin commented
Hi @elliottminns, I was going through your tmux configuration video on YT. I was not able change the prefix key with command shared by you.
PS: I lost my patience that's why hitting over here
set-option -sa terminal-overrides ",xterm*:Tc"
set -g mouse on
#unbind-key C-b
#set-option -g prefix C-Space
#bind-key C-Space send-prefix
# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
# Shift Alt vim keys to switch windows
bind -n M-H previous-window
bind -n M-L next-window
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'dreamsofcode-io/catppuccin-tmux'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-resurrect' # persist tmux sessions after computer restart
#set -g @plugin 'tmux-plugins/tmux-continuum' # automatically saves sessions for you every 15 minutes
set -g @resurrect-capture-pane-contents 'on'
set -g @continuum-restore 'on'
run '~/.tmux/plugins/tpm/tpm'
# set vi-mode
set-window-option -g mode-keys vi
# keybindings
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
Elliott Minns commented
It looks like the three lines that change prefix are commented out. Is that intentional?
Frazer Rose commented
It looks like the three lines that change prefix are commented out. Is that intentional?
@mendaxjerin This. The config changes won't take effect if they're commented out
Jerin commented
@elliottminns /@SirenGlitch
No ot was not intentional, Surprisingly it started to work.
Thanks