diff --git a/dot_config/tmux/tmux.conf b/dot_config/tmux/tmux.conf index 114a8a9..49dee69 100644 --- a/dot_config/tmux/tmux.conf +++ b/dot_config/tmux/tmux.conf @@ -3,11 +3,18 @@ set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'christoomey/vim-tmux-navigator' set -g @plugin 'catppuccin/tmux#latest' +set -g @plugin 'tmux-plugins/tmux-yank' -# change prefix -unbind C-b -set -g prefix C-Space -bind C-Space send-prefix + +# set the control character to Ctrl+Spacebar (instead of Ctrl+B) +set -g prefix C-space +unbind-key C-b +bind-key C-space send-prefix + +# set new panes to open in current directory +bind c new-window -c "#{pane_current_path}" +bind '"' split-window -c "#{pane_current_path}" +bind % split-window -h -c "#{pane_current_path}" # start windows and panes at 1 instead of 0 set -g base-index 1