Skip to content

Instantly share code, notes, and snippets.

@thomaspinder
Last active November 3, 2021 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomaspinder/b1dc6c508f12c482d2dcbef2ed844366 to your computer and use it in GitHub Desktop.
Save thomaspinder/b1dc6c508f12c482d2dcbef2ed844366 to your computer and use it in GitHub Desktop.
Personal tmux config file
# switch prefix to control-a, unmap b, allow double-a to go through
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# -r repeat time (Default 500 millis)
set -g repeat-time 2000
# colors
set -g default-terminal "screen-256color"
# mouse mode (scrolling, etc)
setw -g mode-mouse on
set -g mouse-select-pane on
# set -g mouse-resize-pane on
set -g mouse-select-window on
# remove delay
set -sg escape-time 1
# set {window,pane} index to start at 1
set -g base-index 1
setw -g pane-base-index 1
# remap split panes
bind | split-window -h
bind - split-window -v
# Use Alt-arrow keys without prefix key 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
# Reload tmux config
bind r source-file ~/.tmux.conf
# THEME
set -g status-bg black
set -g status-fg white
set -g window-status-current-bg white
set -g window-status-current-fg black
set -g window-status-current-attr bold
set -g status-interval 60
set -g status-left-length 30
set -g status-left '#[fg=green](#S) #(whoami)'
set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=white]%H:%M#[default]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment