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.

Revisions

  1. jmazzi created this gist May 13, 2015.
    34 changes: 34 additions & 0 deletions -
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@
    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"