Skip to content

Instantly share code, notes, and snippets.

@laapsaap
Created July 1, 2015 13:16
Show Gist options
  • Save laapsaap/fbc99e2c6a06c60fc1ee to your computer and use it in GitHub Desktop.
Save laapsaap/fbc99e2c6a06c60fc1ee to your computer and use it in GitHub Desktop.
.tmux.conf
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
# Flow control
setw -g c0-change-trigger 10
setw -g c0-change-interval 50
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
setw -g mode-keys vi
setw -g mode-mouse off
setw -g monitor-activity on
bind-key \ split-window -h
bind-key - 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
# No delay for escape key press
set -sg escape-time 0
# Reload tmux config
bind r source-file ~/.tmux.conf
# C-b is not acceptable -- Vim uses it
set-option -g prefix C-q
bind-key C-q last-window
# Allows us to use C-q q <command> to send commands to a TMUX session inside another TMUX session
bind-key q send-prefix
# 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]'
# pane border
set-option -g pane-active-border-fg red
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment