Skip to content

Instantly share code, notes, and snippets.

@moniquelive
Created April 13, 2012 02:27
Show Gist options
  • Save moniquelive/2373074 to your computer and use it in GitHub Desktop.
Save moniquelive/2373074 to your computer and use it in GitHub Desktop.
TMUX config file
# VI mode
set -g mode-keys vi
set -g status-keys vi
# increase history limit
set -g history-limit 9999
# counting from 1 (instead of 0)
set -g base-index 1
# expect UTF-8 sequences (must pass -u)
setw -g utf8 on
set -g status-utf8 on
# use C-a, similar to screen
set -g prefix C-a
bind-key C-a send-prefix
unbind l
# a bit more like screen
bind n next-layout
bind C-b last-pane
bind Space next-window
bind C-Space next-window
# reload config
bind r source-file ~/.tmux.conf
bind C-r source-file ~/.tmux.conf
# more intutive split
unbind '"'
unbind %
bind | split-window -h
bind - split-window -v
# set window notifications
setw -g monitor-activity on
set -g visual-activity on
# color theme
setw -g window-status-current-bg red
setw -g clock-mode-style 24
set -g status-bg blue
set -g status-fg yellow
set -g status-interval 15
set -g status-left-length 30
#set -g status-left '#[fg=green](#S) #(whoami)@#H#[default]'
set-option -g status-left '[#(/usr/local/bin/power.sh)] #[default] Windows:'
set -g status-right '#[fg=yellow]#(uptime | cut -d" " -f 12-)#[default] #[fg=white]%H:%M#[default]'
# MOUSE & CLIPBOARD
set -g set-clipboard on
set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on
# to use pbcopy/pbpaste from tmux:
# formula_url=https://raw.github.com/phinze/homebrew/tmux-macosx-pasteboard/Library/Formula/reattach-to-user-namespace.rb
# brew install $formula_url --wrap-pbcopy-and-pbpaste
#new-session
#setw -g aggressive-resize on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment