Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to change the prefix key #2

Open
mendaxjerin opened this issue Jun 19, 2023 · 3 comments
Open

Unable to change the prefix key #2

mendaxjerin opened this issue Jun 19, 2023 · 3 comments

Comments

@mendaxjerin
Copy link

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}"
@elliottminns
Copy link
Member

It looks like the three lines that change prefix are commented out. Is that intentional?

@SirenGlitch
Copy link

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

@mendaxjerin
Copy link
Author

@elliottminns /@SirenGlitch
No ot was not intentional, Surprisingly it started to work.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants