Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
88 lines (63 sloc) 2.19 KB
set -g @almost-sensible 'on'
set -g mouse 'on'
unbind C-b
set -g prefix ^A
bind-key a send-prefix
# other ^A
unbind ^A
bind ^A last-window
# open a man page in new window
bind / command-prompt "split-window 'exec man %%'"
# enable wm window titles
set -g set-titles on
set -g status-right ""
set -g status-left "[#h] "
#### COLOUR (Solarized dark)
set -g default-terminal "screen-256color"
# default statusbar colors
set-option -g status-bg default #base02
set-option -g status-fg green #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg brightblue #base0
set-window-option -g window-status-bg default
set-window-option -g window-status-attr dim
# active window title colors
set-window-option -g window-status-current-fg white #orange
set-window-option -g window-status-current-bg black
set-window-option -g window-status-current-attr bright
# pane border
set-option -g pane-border-fg black #base02
set-option -g pane-active-border-fg brightgreen #base01
# message text
set-option -g message-bg black #base02
set-option -g message-fg brightred #orange
# pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour brightred #orange
# clock
set-window-option -g clock-mode-colour green #green
set-option -g status-justify left
bind r source-file ~/.tmux.conf
#Send prefix
bind-key a send-prefix
# Urlview support
bind-key u capture-pane \; save-buffer /tmp/tmux-buffer \; new-window -n "urlview" '$SHELL -c "urlview < /tmp/tmux-buffer"'
setw -g aggressive-resize on
# 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"
# Plugins
set -g @tpm_plugins " \
tmux-plugins/tpm \
tmux-plugins/tmux-sensible \
tmux-plugins/tmux-resurrect \
tmux-plugins/tmux-pain-control \
"
run-shell ~/.tmux/plugins/tpm/tpm
set-option -g default-command "reattach-to-user-namespace -l zsh"
# https://stelfox.net/blog/2014/03/preventing-tmux-lockups/
set -g c0-change-trigger 20 #default is 250
set -g c0-change-interval 1000 #default is 100