Skip to content

Instantly share code, notes, and snippets.

@c0desurfer
Last active February 25, 2018 16:11
Show Gist options
  • Save c0desurfer/ca7712f91793450f0966b4c271335702 to your computer and use it in GitHub Desktop.
Save c0desurfer/ca7712f91793450f0966b4c271335702 to your computer and use it in GitHub Desktop.
Tmux with Powerline
# powerline
source /usr/local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf
set-option -g default-terminal "screen-256color"
# remap prefix to Control + a
set -g prefix C-a
# bind 'C-a C-a' to type 'C-a'
bind C-a send-prefix
unbind C-b
# vi mode
set-window-option -g mode-keys vi
# easier copy and pasting
unbind p
bind p paste-buffer
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
# border color
set -g pane-border-fg colour31
set -g pane-active-border-fg white
set -g pane-active-border-bg default
# mouse mode on
set -g mouse on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment