Skip to content

Instantly share code, notes, and snippets.

@abdivasiyev
Last active June 21, 2023 01:26
Show Gist options
  • Save abdivasiyev/1049c2e9ef4994fec340c2fc908c7395 to your computer and use it in GitHub Desktop.
Save abdivasiyev/1049c2e9ef4994fec340c2fc908c7395 to your computer and use it in GitHub Desktop.
Tmux config
# Use Alt-arrow keys to switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# Shift arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
# Enable vi copy mode
setw -g mode-keys vi
# Set new panes to open in current directory
bind c new-window
bind '"' split-window
bind % split-window -h
# Easy config reload
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded."
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'dracula/tmux'
set -g @dracula-plugins "battery cpu-usage ram-usage git network-ping"
set -g @dracula-show-left-icon 🎮
set -g @dracula-battery-label 🔋
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment