Skip to content

Instantly share code, notes, and snippets.

@laapsaap laapsaap/.tmux.conf
Created Feb 13, 2017

What would you like to do?
tmux config
# 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 20000
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-key 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
# break-pane -dP
bind-key h break-pane -dP
# synchronize all panes
bind-key j set-window-option synchronize-panes
# clear the scrollback history
bind -n C-k send-keys -R \; clear-history
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]'
set -g status-right '#{?client_prefix,#[reverse]<Prefix>#[noreverse] ,}'
# 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
You can’t perform that action at this time.