Skip to content

Instantly share code, notes, and snippets.

@rakeshtembhurne
Created October 1, 2024 17:16
Show Gist options
  • Save rakeshtembhurne/cf94f98d0042726be888c50ccc1f41d2 to your computer and use it in GitHub Desktop.
Save rakeshtembhurne/cf94f98d0042726be888c50ccc1f41d2 to your computer and use it in GitHub Desktop.
tmux config file
set -g default-terminal "screen-256color"
unbind-key C-b
set -g prefix C-Space
bind-key C-Space send-prefix
unbind %
bind | split-window -h
unbind '"'
bind - split-window -v
unbind r
bind r source-file ~/.config/tmux/tmux.conf \; display-message "Config reloaded..."
bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
bind -r h resize-pane -L 5
bind -r m resize-pane -Z
set -g mouse on
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
bind-key -T copy-mode-vi 'y' send-keys -X copy-selection-and-cancel
unbind -T copy-mode-vi MouseDragEnd1Pane
set -g default-terminal "${TERM}"
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continnum'
set -g @resurrect-capture-pane-contents 'on'
set -g @resurrect-strategy-vim 'session'
set -g @continuum-restore 'on'
bind-key -T copy-mode-vi 'C-h' select-pane -L
bind-key -T copy-mode-vi 'C-j' select-pane -D
bind-key -T copy-mode-vi 'C-k' select-pane -U
bind-key -T copy-mode-vi 'C-l' select-pane -R
bind-key -T copy-mode-vi 'C-\' select-pane -l
run '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment