Skip to content

Instantly share code, notes, and snippets.

@lavoiesl
Created August 28, 2012 23:08
Show Gist options
  • Save lavoiesl/3505159 to your computer and use it in GitHub Desktop.
Save lavoiesl/3505159 to your computer and use it in GitHub Desktop.
Tmux configuration on OSX
# Make it use C-a, similar to screen..
bind-key C-a last-window
bind-key a send-prefix
set -g prefix C-a
# Reload key
bind r source-file ~/.tmux.conf
set -g history-limit 1000
set -g visual-bell off
set-option -g status-utf8 on
set-window-option -g mode-keys vi
set-window-option -g mode-mouse on
set-option -g default-shell /bin/zsh
set-option -g history-limit 4096
set -g default-terminal "xterm-256color"
set-option -g default-command "reattach-to-user-namespace -l zsh"
# THEME
set-option -g status-utf8 on
set -g status-bg colour234
set -g status-fg colour248
set -g status-interval 2
set -g status-left-length 30
set -wg window-status-format ' #I-#W '
set -wg window-status-current-format '#[fg=white][#[default]#I-#W#[fg=white]]#[default]'
set -g status-left '#[fg=colour32]#(whoami)@#H#[default]'
set -g status-right '#[fg=red]#(osxcputemp) #[fg=cyan]#(osx-battery-status.sh 10) #[fg=yellow]#(uptime | grep -oE "[0-9\., ]+$" | tr -d ",")#[default] #[fg=white]%H:%M:%S#[default]'
set -g status-right-length 50
# osxcputemp: https://github.com/lavoiesl/osx-cpu-temp
# osx-battery-status: https://gist.github.com/3505147
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment