Skip to content

Instantly share code, notes, and snippets.

@simon-lang
Created July 27, 2024 23:45
Show Gist options
  • Save simon-lang/eb587f5cb4db0b69acff1cdfa7cf246f to your computer and use it in GitHub Desktop.
Save simon-lang/eb587f5cb4db0b69acff1cdfa7cf246f to your computer and use it in GitHub Desktop.
❯ cat tmux/tmux.conf
# Set window to start at 1
set -g base-index 1
setw -g pane-base-index 1
set -g mouse on
# Fix terminal issue
set -sg escape-time 10
# - hjkl pane traversal
bind-key C-h select-pane -L
bind-key C-j select-pane -D
bind-key C-k select-pane -U
bind-key C-l select-pane -R
# - Simpler window splits
bind-key c new-window -c "#{pane_current_path}"
bind-key % split-window -h -c "#{pane_current_path}"
bind-key '"' split-window -v -c "#{pane_current_path}"
# plugins
set -g @plugin 'catppuccin/tmux'
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
bind -r a select-pane -t .+1 \; resize-pane -Z
bind -n C-k clear-history
set -g @catppuccin_status_background "default"
run '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment