|
|
|
# UGH
|
|
|
|
# set-option -g default-command "reattach-to-user-namespace -l zsh"
|
|
|
|
|
|
|
|
# Set the prefix to ^A
|
|
|
|
unbind C-b
|
|
|
|
set -g prefix C-a
|
|
|
|
bind a send-prefix
|
|
|
|
|
|
|
|
# I must be missing something.. why don't these work automatically?
|
|
|
|
bind C-n next-window
|
|
|
|
bind C-p previous-window
|
|
|
|
bind C-c new-window
|
|
|
|
bind C-d detach
|
|
|
|
|
|
|
|
# Mouse!
|
|
|
|
set -g mode-mouse on
|
|
|
|
set -g mouse-resize-pane on
|
|
|
|
set -g mouse-select-pane on
|
|
|
|
set -g mouse-select-window on
|
|
|
|
|
|
|
|
# Rebinding switching panes
|
|
|
|
bind-key Up select-pane -U
|
|
|
|
bind-key Down select-pane -D
|
|
|
|
bind-key Left select-pane -L
|
|
|
|
bind-key Right select-pane -R
|
|
|
|
|
|
|
|
bind C-a last-window
|
|
|
|
|
|
|
|
# basic settings
|
|
|
|
set-window-option -g mode-keys vi # vi key
|
|
|
|
set-option -g status-keys vi
|
|
|
|
|
|
|
|
# Terminal Titles¬
|
|
|
|
set -g set-titles on
|
|
|
|
set -g set-titles-string "#H (#S)"
|
|
|
|
|
|
|
|
set -g default-terminal "screen-256color"
|
|
|
|
|
|
|
|
# Unicode
|
|
|
|
setw -g utf8 on
|
|
|
|
|
|
|
|
# Status
|
|
|
|
set -g status on
|
|
|
|
set -g status-utf8 on
|
|
|
|
|
|
|
|
# Powerline
|
|
|
|
# Mac
|
|
|
|
source '/usr/local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf'
|
|
|
|
# Linux
|
|
|
|
source '/usr/share/tmux/powerline.conf'
|
|
|
|
# Centos..
|
|
|
|
source '/root/.local/lib/python2.6/site-packages/powerline/bindings/tmux/powerline.conf'
|
|
|
|
|
|
|
|
# Browse URLs
|
|
|
|
bind-key u capture-pane \; save-buffer /tmp/tmux-buffer \; new-window -n "urlview" '$SHELL -c "urlview < /tmp/tmux-buffer"'
|
|
|
|
|
|
|
|
# Escape delay
|
|
|
|
set -s escape-time 0
|