2019-02-04 12:12:59 +00:00
|
|
|
# Status Bar Appearance customization
|
|
|
|
#set -g status-bg black
|
|
|
|
#set -g status-fg white
|
|
|
|
set -g status-bg green
|
|
|
|
set -g window-status-current-bg blue
|
|
|
|
|
|
|
|
# show that activity happens but don't display a huge 'activity happening' notification
|
|
|
|
setw -g monitor-activity on
|
|
|
|
set -g visual-activity off
|
|
|
|
|
|
|
|
# Start counting windows and panes at 1
|
|
|
|
set -g base-index 1
|
|
|
|
setw -g pane-base-index 1
|
|
|
|
|
|
|
|
# Custom modifier key
|
2019-02-04 14:27:49 +00:00
|
|
|
set -g prefix C-a
|
2019-02-04 12:12:59 +00:00
|
|
|
unbind-key C-b
|
2019-02-04 14:27:49 +00:00
|
|
|
bind-key C-a send-prefix
|
2019-02-04 12:12:59 +00:00
|
|
|
|
|
|
|
# Terminal improvements
|
|
|
|
set -g terminal-overrides "xterm*:XT:smcup@:rmcup@"
|
|
|
|
set-window-option -g automatic-rename on
|
|
|
|
set -g renumber-windows on
|
|
|
|
set-option -g set-titles on
|
|
|
|
set -g mouse on
|
|
|
|
set -g default-terminal screen-256color
|
|
|
|
set -g status-keys vi
|
|
|
|
set -g history-limit 10000
|
|
|
|
|
|
|
|
# Clear scrollback buffer
|
|
|
|
bind l clear-history
|
|
|
|
|
|
|
|
# Custom key bindings to split the window
|
|
|
|
# split it using modifier key + v or s
|
2019-02-04 14:41:57 +00:00
|
|
|
#bind-key h split-window -h
|
|
|
|
#bind-key v split-window -v
|
2019-02-04 12:12:59 +00:00
|
|
|
# split it w/o modifier key using - or _
|
2019-02-04 14:41:57 +00:00
|
|
|
#bind - split-window -v
|
|
|
|
#bind _ split-window -h
|
2019-02-04 12:12:59 +00:00
|
|
|
|
|
|
|
# No delay for escape key press
|
|
|
|
set -sg escape-time 0
|
|
|
|
|
|
|
|
# WINDOW SWITCHING
|
|
|
|
# Easier window navigation
|
|
|
|
bind -n C-Tab next-window
|
|
|
|
bind -n C-S-Tab previous-window
|
|
|
|
#bind -n C-S-Left previous-window
|
|
|
|
#bind -n C-S-Right next-window
|
|
|
|
|
|
|
|
# Copy to cygwin clipboard
|
|
|
|
bind -n C-t run "tmux save-buffer - > /dev/clipboard"
|
|
|
|
|
|
|
|
# PANE & WINDOW DESTRUCTION
|
|
|
|
# Kill tabs quicker
|
|
|
|
bind-key x kill-pane
|
|
|
|
bind-key C-x kill-window
|
|
|
|
|
2019-02-04 14:41:57 +00:00
|
|
|
# Plugins -- TO INITALLY SET UP THE PLUGINS PRESS bind-key I (that is shift i)
|
|
|
|
# -- a message will appear after a second saying succes
|
2019-02-04 14:27:49 +00:00
|
|
|
#run-shell ~/.tmux-plugins/resurrect/resurrect.tmux
|
2019-02-04 14:41:57 +00:00
|
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-pain-control'
|
2019-02-04 14:27:49 +00:00
|
|
|
set -g @plugin 'jimeh/tmux-themepack'
|
|
|
|
set -g @themepack 'powerline/default/blue'
|
2019-02-04 14:41:57 +00:00
|
|
|
|
|
|
|
run -b '~/.tmux/plugins/tpm/tpm'
|
|
|
|
|