Skip to content

Instantly share code, notes, and snippets.

@harrisoncramer
Created January 4, 2022 01:43
Show Gist options
  • Save harrisoncramer/eaf1399b1e183713acc14bf36c28e1de to your computer and use it in GitHub Desktop.
Save harrisoncramer/eaf1399b1e183713acc14bf36c28e1de to your computer and use it in GitHub Desktop.
Tmux
# Set colors appropriately.
set -g terminal-overrides ',xterm-256color:Tc'
set -g default-terminal "tmux-256color"
set -as terminal-overrides ',xterm*:sitm=\E[3m'
# Make escape faster for editing in Nvim
set -s escape-time 0
# Change Bind Key
set -gu prefix2
unbind C-a
unbind C-b
set -g prefix C-]
bind C-] send-prefix
# Pane navigation
bind -r h select-pane -L # left
bind -r j select-pane -D # down
bind -r k select-pane -U # up
bind -r l select-pane -R # right
# Window navigation
unbind n
unbind p
bind -r C-h previous-window # select previous window
bind -r C-l next-window # select next window
bind Tab last-window # move to last active window
# Set colors
set-option -g status-style bg=default
set -g status-fg white
# Show nothing on the right.
set -g status-right ""
# Set nothing on left (no CPU name).
set -g status-left ""
set -g status-left-length ""
set-window-option -g window-status-current-format " #W "
setw -g window-status-current-style fg=black,bg=color108
set-window-option -g window-status-format " #W "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment