Skip to content

Instantly share code, notes, and snippets.

@wearethefoos
Created October 16, 2013 13:28
Show Gist options
  • Select an option

  • Save wearethefoos/7007718 to your computer and use it in GitHub Desktop.

Select an option

Save wearethefoos/7007718 to your computer and use it in GitHub Desktop.
# Prefix to C-a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# Vim bindings
set -g status-keys vi
# Use vim keybindings in copy mode
setw -g mode-keys vi
# # Setup 'v' to begin selection as in Vim
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
# # Update default binding of `Enter` to also use copy-pipe
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
# Fix colors
set -g default-terminal "screen-256color"
# Reload config with 'r'
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
# Configure status bar with powerline
set -g status on
set -g status-utf8 on
set -g status-interval 2
set -g status-fg colour231
set -g status-bg colour234
set -g status-left-length 60
set -g status-right-length 150
set -g status-justify "centre"
set -g status-left "#(~/.tmux-powerline/powerline.sh left)"
set -g status-right "#(~/.tmux-powerline/powerline.sh right)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment