Skip to content

Instantly share code, notes, and snippets.

@bfg bfg/.tmux.conf
Created Apr 30, 2014

What would you like to do?
# tmux configuration
# remap CTRL+B => CTRL+A (screen like shit)
set -g prefix C-a
unbind C-b
# bind PREFIX + r => reload tmux config && print notice
bind r source-file ~/.tmux.conf \; display "tmux configuration was reloaded!"
# window/pane splitting stuff
bind W split-window -h
bind | split-window -h
bind - split-window -v
# default delay
set -sg escape-time 1
# pane/windows indexes
set -g base-index 1
set -g pane-base-index 1
# keybindings to make resizing easier
bind -r C-h resize-pane -L
bind -r C-j resize-pane -D
bind -r C-k resize-pane -U
bind -r C-l resize-pane -R
# mouse
setw -g mode-mouse off
set -g mouse-select-pane off
set -g mouse-resize-pane off
set -g mouse-select-window off
# join pane stuff
bind-key @ command-prompt -p "create pane from:" "join-pane -s ':%%'"
# 256 colour terminal
set -g default-terminal "screen-256color"
# Copy into the X clipboard
bind-key C-c run 'tmux show-buffer | xsel -pbi'
# status bar
setw -g window-status-fg white
setw -g window-status-bg red
setw -g window-status-attr bright
set -g pane-border-fg green
set -g pane-border-bg black
set -g pane-active-border-fg white
set -g message-fg white
set -g message-bg black
set -g message-attr bright
setw -g monitor-activity on
set -g visual-activity on
set -g status-bg black
set -g status-fg yellow
set -g status-justify centre
set -g status-utf8 on
set -g status-interval 5
setw -g monitor-activity on
set -g visual-activity on
set -g status-left-length 40
set -g status-left "#[fg=green]sess: #S #[fg=yellow]win: #I #[fg=cyan]pane: #P"
set -g status-right-length 40
set -g status-right "host: #H date: %Y/%m/%d %H:%M"
# vim:syntax=tmux
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.