Skip to content

Instantly share code, notes, and snippets.

@andrewkatz
Created January 13, 2013 22:33
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 andrewkatz/4526589 to your computer and use it in GitHub Desktop.
Save andrewkatz/4526589 to your computer and use it in GitHub Desktop.
tmux config
set -g default-terminal "screen-256color"
# Use the system pasteboard
set-option -g default-command "reattach-to-user-namespace -l zsh"
# Bind Control key to match Screen
set -g prefix C-a
# Use vi key bindings
set -g status-keys vi
setw -g mode-keys vi
# Control+C-a to go to previous window
bind-key C-a last-window
# Status bar options
set -g status-fg blue
set -g status-bg black
set -g status-left-length 60
set -g status-left "[ l:#(/Users/andrewkatz/Scripts/load.sh) m:#(/Users/andrewkatz/Scripts/memory.sh)#[fg=default] ] ["
set -g status-right ' ] [ #(/Users/andrewkatz/Scripts/power.sh) #[fg=cyan]%Y-%m-%d #[fg=default]%H:%M ]'
# Window title Options
set-window-option -g window-status-fg white
set-window-option -g window-status-bg black
set-window-option -g window-status-attr dim
# active window title colors
set -g window-status-format '#I:#W#F'
set -g window-status-current-format '#[bg=colour245,fg=black]#I:#W '
set-window-option -g mode-fg white
set-window-option -g mode-bg red
set-window-option -g mode-attr bright
# Remap split window keys
unbind % # Remove default binding since we’re replacing
bind | split-window -h
bind - split-window -v
# Resize to the smallest client actively viewing a window
setw -g aggressive-resize on
# Don't wait so long for commands
set -s escape-time 0
# Move window to top
bind t swap-window -t 0
# Resize current nd-key k select-pane -U
bind-key j resize-pane -D 20
bind-key h resize-pane -L 20
bind-key l resize-pane -R 20
bind-key k resize-pane -U 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment