Skip to content

Instantly share code, notes, and snippets.

@wilfreddenton
Last active March 16, 2023 00:23
Show Gist options
  • Save wilfreddenton/3a9ed2f3c0d278dcb3847dcf10846ad2 to your computer and use it in GitHub Desktop.
Save wilfreddenton/3a9ed2f3c0d278dcb3847dcf10846ad2 to your computer and use it in GitHub Desktop.
tmux config
# deps: tpm
# colors
set -g default-terminal "screen-256color"
# remap prefix
set -g prefix C-w
unbind C-b
bind-key C-w send-prefix
# pane splitting
unbind %
bind \\ split-window -h
unbind '"'
bind - split-window -v
unbind x
bind-key x kill-pane
# pane resizing
unbind =
bind = select-layout even-vertical
# pane switching
bind k select-pane -U
bind j select-pane -D
bind h select-pane -L
bind l select-pane -R
# reload
unbind r
bind r source-file ~/.tmux.conf
# mouse
set -g mouse on
# vim
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection
unbind -T copy-mode-vi MouseDragEnd1Pane
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# Other examples:
set -g @plugin 'christoomey/vim-tmux-navigator'
# set -g @plugin 'jimeh/tmux-themepack'
# set -g @themepack 'powerline/double/cyan'
set -g @plugin 'dracula/tmux'
set -g @dracula-plugins "cpu-usage ram-usage network-bandwidth weather time"
# set -g @dracula-show-powerline true
set -g @dracula-military-time true
# 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