2016-06-14 18:31:48 +00:00
|
|
|
# 0 is too far from `
|
|
|
|
set -g base-index 1
|
|
|
|
|
|
|
|
# Turn on mouse stuff
|
2020-09-28 19:50:45 +00:00
|
|
|
set-option -g mouse off
|
2016-06-14 18:31:48 +00:00
|
|
|
|
2017-06-21 18:59:17 +00:00
|
|
|
# Turn off automatic window naming
|
2020-10-05 22:01:48 +00:00
|
|
|
set-option -g allow-rename off
|
2017-06-21 18:59:17 +00:00
|
|
|
|
|
|
|
# Unbind the Page keys as they interfere with VIM
|
|
|
|
unbind Pageup
|
|
|
|
unbind Pagedown
|
|
|
|
|
|
|
|
# Change Kill window behavior
|
2020-10-05 22:01:48 +00:00
|
|
|
#unbind C-&
|
2017-06-21 18:59:17 +00:00
|
|
|
unbind &
|
|
|
|
bind k confirm kill-pane
|
|
|
|
bind K confirm kill-window
|
|
|
|
|
2016-06-14 18:31:48 +00:00
|
|
|
# Change our prefix to not have to move my fingers as far
|
|
|
|
unbind C-b
|
|
|
|
set-option -g prefix C-a
|
|
|
|
bind-key C-a send-prefix
|
|
|
|
|
|
|
|
# Split with pipe and dash
|
|
|
|
bind | split-window -h
|
|
|
|
bind - split-window -v
|
|
|
|
unbind '"'
|
|
|
|
unbind %
|
|
|
|
|
|
|
|
# Reload with C-r
|
|
|
|
bind r source-file ~/.tmux.conf
|
|
|
|
|
|
|
|
# Switch Panes using Alt-arrow without prefix
|
|
|
|
bind -n M-Left select-pane -L
|
|
|
|
bind -n M-Right select-pane -R
|
|
|
|
bind -n M-Up select-pane -U
|
|
|
|
bind -n M-Down select-pane -D
|
|
|
|
|
2017-06-21 18:59:17 +00:00
|
|
|
# Switch windows alt+number
|
2016-06-14 18:31:48 +00:00
|
|
|
bind-key -n M-1 select-window -t 1
|
2017-06-21 18:59:17 +00:00
|
|
|
bind-key -n M-2 select-window -t 2
|
2016-06-14 18:31:48 +00:00
|
|
|
bind-key -n M-3 select-window -t 3
|
|
|
|
bind-key -n M-4 select-window -t 4
|
|
|
|
bind-key -n M-5 select-window -t 5
|
|
|
|
bind-key -n M-6 select-window -t 6
|
|
|
|
bind-key -n M-7 select-window -t 7
|
|
|
|
bind-key -n M-8 select-window -t 8
|
|
|
|
bind-key -n M-9 select-window -t 9
|
2017-06-21 18:59:17 +00:00
|
|
|
bind-key -n M-0 select-window -t 0
|
|
|
|
|
|
|
|
# Resize panes without prefix
|
|
|
|
bind -n M-< resize-pane -L 1
|
|
|
|
bind -n M-> resize-pane -R 1
|
2016-06-14 18:31:48 +00:00
|
|
|
|
|
|
|
# Display visual indicator about which pane is what
|
|
|
|
bind-key w display-panes
|
|
|
|
|
2017-06-21 18:59:17 +00:00
|
|
|
# Sets tmux scrollback history
|
2019-04-30 15:05:37 +00:00
|
|
|
set -g history-limit 5000
|
2017-06-21 18:59:17 +00:00
|
|
|
|
|
|
|
# Syncronizes keys typed in one pane across all panes, press again to disable
|
2017-06-22 17:21:44 +00:00
|
|
|
bind-key y setw synchronize-panes
|
2020-10-05 22:01:48 +00:00
|
|
|
|
|
|
|
# Iceberg-specific settings
|
|
|
|
# Powerline separators
|
2022-08-17 21:51:25 +00:00
|
|
|
# separator_left="\ue0b0"
|
|
|
|
# separator_right="\ue0b2"
|
|
|
|
|
|
|
|
# subseparator_left="\ue0b1"
|
|
|
|
# subseparator_right="\ue0b3"
|
2020-10-05 22:01:48 +00:00
|
|
|
|
2022-08-17 21:51:25 +00:00
|
|
|
# Nord Theme
|
|
|
|
set -g @plugin "arcticicestudio/nord-tmux"
|
2020-10-05 22:01:48 +00:00
|
|
|
|
2017-06-21 18:59:17 +00:00
|
|
|
# List your plugins here
|
2016-06-14 18:31:48 +00:00
|
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-net-speed'
|
2017-06-21 18:59:17 +00:00
|
|
|
set -g @plugin 'tmux-plugins/tmux-continuum'
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-sessionist'
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-logging'
|
2018-10-16 03:22:52 +00:00
|
|
|
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
|
2017-06-21 18:59:17 +00:00
|
|
|
|
|
|
|
# Plugin settings here
|
|
|
|
set -g @continuum-restore 'on'
|
|
|
|
|
2018-05-16 23:30:31 +00:00
|
|
|
# Automatically install TPM plugins (eg. first launch)
|
|
|
|
setenv -g TMUX_PLUGIN_MANAGER_PATH '$HOME/.tmux/plugins/'
|
|
|
|
|
2017-06-21 18:59:17 +00:00
|
|
|
# Install TPM if it does not exist
|
|
|
|
if "test ! -d ~/.tmux/plugins/tpm" \
|
2017-06-22 17:50:53 +00:00
|
|
|
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
|
2016-06-14 18:31:48 +00:00
|
|
|
|
|
|
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
2017-06-21 18:59:17 +00:00
|
|
|
run '~/.tmux/plugins/tpm/tpm'
|
|
|
|
|