Skip to content

Instantly share code, notes, and snippets.

@Lytol
Created September 11, 2015 21:59
Show Gist options
  • Select an option

  • Save Lytol/3dbe9318b877568364b2 to your computer and use it in GitHub Desktop.

Select an option

Save Lytol/3dbe9318b877568364b2 to your computer and use it in GitHub Desktop.

Revisions

  1. Lytol created this gist Sep 11, 2015.
    32 changes: 32 additions & 0 deletions tmux.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    # terminal with 256 color
    set -g default-terminal "screen-256color"

    # Clipboard fix for iterm + OS X
    set-option -g default-command "reattach-to-user-namespace -l zsh"

    # command prefix (like screen)
    set-option -g prefix C-a
    unbind-key C-b
    bind-key C-a send-prefix

    # longer scrollback buffer
    set-option -g history-limit 5000

    # custom status
    set-option -g status-bg blue
    set-option -g status-fg white
    set-option -g status-left-length 30

    # vi-mode and copying
    set-window-option -g mode-keys vi
    bind-key -t vi-copy 'v' begin-selection
    bind-key -t vi-copy 'y' copy-pipe "reattach-to-user-namespace pbcopy"

    # custom bindings
    bind-key h select-pane -L
    bind-key j select-pane -D
    bind-key k select-pane -U
    bind-key l select-pane -R

    unbind-key q
    bind-key q confirm-before kill-session