Skip to content

Instantly share code, notes, and snippets.

@carloseustaquio
Created January 31, 2021 02:56
Show Gist options
  • Save carloseustaquio/bed31816e9d33caa774fa1957c696252 to your computer and use it in GitHub Desktop.
Save carloseustaquio/bed31816e9d33caa774fa1957c696252 to your computer and use it in GitHub Desktop.
My tmux config
# Mouse
set -g mouse on
# Improve colors
set -g default-terminal 'screen-256color'
# Set scrollback buffer to 10000
set -g history-limit 10000
# Customize the status line
set -g status-fg white
set -g status-bg black
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind -n M-/ split-window -h
bind -n M-- split-window -v
unbind '"'
unbind %
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
# switch panes using:
## Alt-arrow without prefix
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
## Vim-like shortcuts
bind -n M-h select-pane -L
bind -n M-l select-pane -R
bind -n M-k select-pane -U
bind -n M-j select-pane -D
# Shift arrow to switch windows
bind -n S-Right previous-window
bind -n S-Left next-window
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment