Skip to content

Instantly share code, notes, and snippets.

@skarfacegc
Last active December 17, 2015 03:29
Show Gist options
  • Save skarfacegc/5544065 to your computer and use it in GitHub Desktop.
Save skarfacegc/5544065 to your computer and use it in GitHub Desktop.
my tmux.conf
# my tmux config file
# Emacs bindings
set -gw mode-keys emacs
# windows numbers start at 1
set -g base-index 1
# aliases
bind r source-file ~/.tmux.conf
#
# Mouse Stuff
#
set -g mouse-select-pane on
set -g mouse-resize-pane on
set -g mouse-select-window on
set-window-option -g mode-mouse on
#
# Colors
#
set -g default-terminal "screen-256color"
# Status line
set-option -g status-bg colour237
set-option -g status-fg colour117
set-option -g window-status-current-fg colour235
set-option -g window-status-current-bg colour111
set-option -g status-right-length 48
set -g status-justify centre
set -g status-right '#(rainbarf --remaining --rgb)'
# windows
set-option -g pane-border-fg colour239
set-option -g pane-active-border-fg colour117
# Try to make copy/paste work on OSX....
# Doesn't work with mouse :(
# Use emacs style set mark C-space and copy C-w
# Will show up in OSX paste buffer after you hit C-w
#
# Needs the command reattach-to-user-namespace
# tmux-pasteboard in macports
bind-key -t emacs-copy C-w copy-pipe "reattach-to-user-namespace pbcopy"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment