|
|
|
# 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
|
|
|
|
|
|
|
|
set -g mode-keys vi
|
|
|
|
|
|
|
|
# Terminal Titles
|
|
|
|
set -g set-titles on
|
|
|
|
set -g set-titles-string "#H (#S)"
|
|
|
|
|
|
|
|
# Status
|
|
|
|
set -g status on
|
|
|
|
|
|
|
|
# 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'
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-battery'
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-maildir-counter'
|
|
|
|
set -g @plugin 'seebi/tmux-colors-solarized'
|
|
|
|
|
|
|
|
set -g @maildir_counters '~/Mail/FastMail/INBOX/new|~/Mail/IOCOM/INBOX/new'
|
|
|
|
|
|
|
|
set -g status-right '✉ F:#{maildir_counter_1} I:#{maildir_counter_2} | #{battery_icon} #{battery_percentage} | %a %h-%d %H:%M '
|
|
|
|
|
|
|
|
# Initialize TMUX plugin manager
|
|
|
|
run '~/.tmux/plugins/tpm/tpm'
|