Skip to content

Instantly share code, notes, and snippets.

@esau-morais
Last active December 21, 2023 11:30
Show Gist options
  • Save esau-morais/ebab1757c515b28756cad2662b339e4b to your computer and use it in GitHub Desktop.
Save esau-morais/ebab1757c515b28756cad2662b339e4b to your computer and use it in GitHub Desktop.
My TMUX config file
set -g default-shell /bin/zsh
set -g default-terminal 'tmux-256color'
set -ag terminal-overrides ',xterm-256color:RGB'
setw -g mouse on
set -g escape-time 10
setw -g mode-keys vi
unbind C-b
set-option -g prefix ^
bind-key ^ send-prefix
unbind %
bind | split-window -h -c "#{pane_current_path}"
unbind '"'
bind - split-window -v -c "#{pane_current_path}"
unbind r
bind r source-file ~/.config/tmux/tmux.conf
bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
bind -r h resize-pane -L 5
bind -r m resize-pane -Z
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
bind P paste-buffer
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
# plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set-option -g status on
set-option -g status-interval 1
set-option -g status-justify centre
set-option -g status-keys vi
set -g status-left "#[fg=blue,bold,bg=#1e1e2e] #S "
set -g status-right "#[fg=#b4befe,bold,bg=#1e1e2e] %a %Y-%m-%d 󱑒 %l:%M %p"
set -g status-style fg="#cdd6f4",bg="#1e1e2e"
set -g status-position top # macOS / darwin style
set -g status-justify left
set -g status-left-length 200 # increase length (from 10)
set -g status-right-length 200 # increase length (from 10)
set-window-option -g window-status-format "#W"
set-window-option -g window-status-current-format "◆ #W"
# must be at the very bottom of the file
run '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment