Skip to content

Instantly share code, notes, and snippets.

@KarlHerler
Created May 27, 2015 16:14
Show Gist options
  • Save KarlHerler/7bd5931a81c94e6fda2d to your computer and use it in GitHub Desktop.
Save KarlHerler/7bd5931a81c94e6fda2d to your computer and use it in GitHub Desktop.
my tmux.conf
##
# STATUS BAR CUSTOMIZATION
##
set -g status-utf8 on
set -g status-keys vi
set -g status-interval 1
set -g status-attr bright
set -g status-fg white
set -g status-bg black
set -g status-left-length 20
set -g status-left '#[fg=green][#[fg=red]#S#[fg=green]]#[default]'
set -g status-justify centre
set -g status-right '#[fg=green][ %m/%d %H:%M:%S ]#[default]'
setw -g window-status-current-format '#[fg=yellow](#I.#P#F#W)#[default]'
setw -g window-status-format '#I#F#W'
##
# TERMINAL EMULATOR TITLES
##
set -g set-titles on
set -g set-titles-string "#(tmux ls | awk -F: '{print $1}' | xargs | sed 's/\ / | /g')"
##
# KEY BINDINGS
##
# Force reaload of config
unbind r
bind r source-file ~/.tmux.conf
##
# BASIC CONFIG
##
# utf8 ability
setw -g utf8 on
# Make mouse useful in copy mode
setw -g mode-mouse on
# Allow mouse to select which pane to use
set -g mouse-select-pane on
# Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left, C-Right
set -g terminal-overrides "xterm*:XT:smcup@:rmcup@:kUP5=\eOA:kDN5=\eOB:kLFT5=\eOD:kRIT5=\eOC"
# Scroll History
set -g history-limit 30000
# Set ability to capture on start and restore on exit window data when running an application
setw -g alternate-screen on
# Lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access.
set -s escape-time 50
# Use all colors
set -g default-terminal "screen-256color"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment