Skip to content

Instantly share code, notes, and snippets.

@pyratin
Last active May 28, 2024 12:30
Show Gist options
  • Save pyratin/38cdc182d89f6f406a1c to your computer and use it in GitHub Desktop.
Save pyratin/38cdc182d89f6f406a1c to your computer and use it in GitHub Desktop.
.tmux.conf
# Tmux settings
set -g default-terminal "xterm-256color"
# Set XTerm key bindings
setw -g xterm-keys on
# Set reload key to r
bind r source-file ~/.tmux.conf
# Count sessions start at 1
set -g base-index 1
# Use vim bindings
setw -g mode-keys vi
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
set -g @resurrect-strategy-nvim 'session'
set -g @resurrect-processes ':all:'
set -g @resurrect-save-bash-history 'on'
run '~/.tmux/plugins/tpm/tpm'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-resurrect'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment