Skip to content

Instantly share code, notes, and snippets.

@alsolovyev
Last active July 11, 2024 17:43
Show Gist options
  • Save alsolovyev/7ee2d92f12ed8d178fe99d05c6e99ce6 to your computer and use it in GitHub Desktop.
Save alsolovyev/7ee2d92f12ed8d178fe99d05c6e99ce6 to your computer and use it in GitHub Desktop.
Tmux configuration
# https://man7.org/linux/man-pages/man1/tmux.1.html
# Common
set -g base-index 1
set -g mode-keys vi
set -g mouse on
set -g pane-base-index 1
set -g status off
set -g status-interval 0
# Fix colors: use a wildcard instead of forcing a default mode
# https://gist.github.com/andersevenrud/015e61af2fd264371032763d4ed965b6
set -sg terminal-overrides ',*:RGB'
# Options
set-option -g focus-events on
set-option -g status-position top
# Reload configuration
bind r source-file ~/.config/tmux/tmux.conf \; display 'Config has been reloaded'
# Switch
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Resize
bind -r C-k resize-pane -U 5
bind -r C-j resize-pane -D 5
bind -r C-h resize-pane -L 5
bind -r C-l resize-pane -R 5
# Close
bind q killw
# Plugins
set -g @plugin 'catppuccin/tmux'
set -g @plugin 'tmux-plugins/tpm'
# Catppuccin Theme
# https://github.com/catppuccin/tmux?tab=readme-ov-file#configuration-options
set -g @catppuccin_flavour 'mocha'
set -g @catppuccin_status_background 'default'
set -g @catppuccin_status_modules_right ' '
set -g @catppuccin_window_default_text "#W"
set -g @catppuccin_window_current_text "#W"
run '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment