Skip to content

Instantly share code, notes, and snippets.

@jmazzi
Created May 13, 2015 14:15
Show Gist options
  • Save jmazzi/c3908be3c2093a063dfd to your computer and use it in GitHub Desktop.
Save jmazzi/c3908be3c2093a063dfd to your computer and use it in GitHub Desktop.
setw -g mode-keys vi
# Tmux conf file to use on OSX machines to get copy and past to work properly
set -g default-command "reattach-to-user-namespace -l zsh"
# OSX Copy mode
bind y run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
# Better window splitting
bind v split-window -h -c "#{pane_current_path}"
bind s split-window -v -c "#{pane_current_path}"
bind S choose-session
bind F5 select-layout tiled
bind F6 select-layout even-horizontal
bind F7 select-layout even-vertical
bind F8 select-layout main-horizontal
bind F9 select-layout main-vertical
set -g prefix C-f
unbind C-b
bind C-f send-prefix
set -g default-terminal "screen-256color"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment