|
|
|
# Set the prefix to ^A
|
|
|
|
unbind C-b
|
|
|
|
set -g prefix C-a
|
|
|
|
bind a send-prefix
|
|
|
|
|
|
|
|
bind C-c new-window
|
|
|
|
bind C-d detach
|
|
|
|
bind C-a last-window
|
|
|
|
|
|
|
|
# Mouse!
|
|
|
|
set -g mode-mouse on
|
|
|
|
set -g mouse-resize-pane on
|
|
|
|
set -g mouse-select-pane on
|
|
|
|
set -g mouse-select-window on
|
|
|
|
|
|
|
|
set -g mode-keys vi
|
|
|
|
|
|
|
|
# Terminal Titles
|
|
|
|
set -g set-titles on
|
|
|
|
set -g set-titles-string "#H (#S)"
|
|
|
|
|
|
|
|
# Status
|
|
|
|
set -g status on
|
|
|
|
|
|
|
|
# Powerline
|
|
|
|
source "$HOME/.pyenv/versions/2.7.9/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf"
|
|
|
|
|
|
|
|
# Escape delay
|
|
|
|
set -s escape-time 1
|
|
|
|
|
|
|
|
# Open new windows in current directory
|
|
|
|
bind '"' split-window -c "#{pane_current_path}"
|
|
|
|
bind % split-window -h -c "#{pane_current_path}"
|
|
|
|
bind c new-window -c "#{pane_current_path}"
|
|
|
|
|
|
|
|
# Plugins
|
|
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-continuum'
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-copycat'
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-yank'
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-open'
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-pain-control'
|
|
|
|
set -g @plugin 'jbnicolai/tmux-urlview'
|
|
|
|
|
|
|
|
# Initialize TMUX plugin manager
|
|
|
|
run '~/.tmux/plugins/tpm/tpm'
|