Skip to content

Instantly share code, notes, and snippets.

@fernandotakai
Created January 17, 2017 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fernandotakai/57ef8b17e3f7428eeaa1bda3ac551148 to your computer and use it in GitHub Desktop.
Save fernandotakai/57ef8b17e3f7428eeaa1bda3ac551148 to your computer and use it in GitHub Desktop.
setw -g mode-keys vi
unbind [
bind '[' copy-mode
unbind p
bind p paste-buffer
bind-key -t vi-copy 'v' begin-selection
unbind -t vi-copy Enter
bind-key -t vi-copy 'y' copy-pipe "/home/ftakai/bin/copy-stuff"
bind > run "( tmux show-buffer | xsel) && tmux display-message \"ok!\""
set -g default-terminal "screen-256color"
set -g mouse on
unbind C-b
set -g prefix C-x
set-option -g allow-rename off
set-option -g renumber-windows on
set-option -g repeat-time 200
# moving window easy way
bind-key m command-prompt -p "move window to:" "swap-window -t '%%'"
# not-so-easy to type, but easier to remember
unbind %
bind | split-window -h
bind - split-window -v
# change windows
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize panes
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
bind q last-window
set-option -sg escape-time 10
source "/usr/lib/python3.6/site-packages/powerline/bindings/tmux/powerline.conf"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment