└── tmux.conf /tmux.conf: -------------------------------------------------------------------------------- 1 | set-option -sa terminal-overrides ",xterm*:Tc" 2 | set -g mouse on 3 | 4 | unbind C-b 5 | set -g prefix C-Space 6 | bind C-Space send-prefix 7 | 8 | # Vim style pane selection 9 | bind h select-pane -L 10 | bind j select-pane -D 11 | bind k select-pane -U 12 | bind l select-pane -R 13 | 14 | # Start windows and panes at 1, not 0 15 | set -g base-index 1 16 | set -g pane-base-index 1 17 | set-window-option -g pane-base-index 1 18 | set-option -g renumber-windows on 19 | 20 | # Use Alt-arrow keys without prefix key to switch panes 21 | bind -n M-Left select-pane -L 22 | bind -n M-Right select-pane -R 23 | bind -n M-Up select-pane -U 24 | bind -n M-Down select-pane -D 25 | 26 | # Shift arrow to switch windows 27 | bind -n S-Left previous-window 28 | bind -n S-Right next-window 29 | 30 | # Shift Alt vim keys to switch windows 31 | bind -n M-H previous-window 32 | bind -n M-L next-window 33 | 34 | set -g @catppuccin_flavour 'mocha' 35 | 36 | set -g @plugin 'tmux-plugins/tpm' 37 | set -g @plugin 'tmux-plugins/tmux-sensible' 38 | set -g @plugin 'christoomey/vim-tmux-navigator' 39 | set -g @plugin 'dreamsofcode-io/catppuccin-tmux' 40 | set -g @plugin 'tmux-plugins/tmux-yank' 41 | 42 | run '~/.tmux/plugins/tpm/tpm' 43 | 44 | # set vi-mode 45 | set-window-option -g mode-keys vi 46 | # keybindings 47 | bind-key -T copy-mode-vi v send-keys -X begin-selection 48 | bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle 49 | bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel 50 | 51 | bind '"' split-window -v -c "#{pane_current_path}" 52 | bind % split-window -h -c "#{pane_current_path}" 53 | --------------------------------------------------------------------------------