2023-10-15 21:00:49 +00:00
|
|
|
# Based on:
|
|
|
|
# https://github.com/henrik/dotfiles/blob/master/tmux.conf
|
|
|
|
|
|
|
|
# Remap Prefix to C-a
|
|
|
|
unbind C-b
|
|
|
|
set -g prefix C-a
|
|
|
|
|
|
|
|
# Improve pane split
|
|
|
|
bind | split-window -h
|
|
|
|
bind - split-window -v
|
|
|
|
|
|
|
|
# Improve pane move
|
|
|
|
bind h select-pane -L
|
|
|
|
bind j select-pane -D
|
|
|
|
bind k select-pane -U
|
|
|
|
bind l select-pane -R
|
|
|
|
|
|
|
|
# Improve window move
|
|
|
|
bind -r C-h select-window -t :-
|
|
|
|
bind -r C-l select-window -t :+
|
|
|
|
|
|
|
|
# Improve resize pane
|
|
|
|
bind -r H resize-pane -L 5
|
|
|
|
bind -r J resize-pane -D 5
|
|
|
|
bind -r K resize-pane -U 5
|
|
|
|
bind -r L resize-pane -R 5
|
|
|
|
|
|
|
|
# Enable vim keys
|
|
|
|
set-window-option -g mode-keys vi
|
|
|
|
|
|
|
|
# Make [shift]-arrows, [ctrl]-arrows, etc work in vim
|
|
|
|
set -g xterm-keys on
|
|
|
|
|
|
|
|
# Attempt to fixes slows [esc] issues
|
|
|
|
set -s escape-time 0
|
|
|
|
|
|
|
|
# Disable mouse
|
|
|
|
# set -g mode-mouse off
|
|
|
|
|
|
|
|
# Status bar styling and content
|
|
|
|
set -g status-bg black
|
|
|
|
set -g status-fg white
|
|
|
|
|
|
|
|
# Don't prompt to kill panes/windows
|
|
|
|
bind-key x kill-pane
|
|
|
|
bind-key & kill-window
|
|
|
|
|
|
|
|
# Reload tmux conf
|
|
|
|
unbind r
|
2024-01-14 19:00:37 +00:00
|
|
|
bind r source-file ~/.config/tmux/tmux.conf\; display "Reloaded conf."
|
2023-10-15 21:00:49 +00:00
|
|
|
|
|
|
|
# Full color for vim
|
2024-03-28 00:18:20 +00:00
|
|
|
# based on https://gist.github.com/andersevenrud/015e61af2fd264371032763d4ed965b6
|
|
|
|
set -g default-terminal "tmux-256color"
|
|
|
|
set -sg terminal-overrides ",*:RGB"
|
2023-10-15 21:00:49 +00:00
|
|
|
|
2024-09-29 12:34:50 +00:00
|
|
|
# tms shortcuts
|
|
|
|
bind C-o display-popup -E "tms"
|
|
|
|
bind C-j display-popup -E "tms switch"
|
|
|
|
bind C-w display-popup -E "tms windows"
|
2023-10-15 21:00:49 +00:00
|
|
|
|
|
|
|
# buffer size
|
|
|
|
set -g history-limit 50000
|
|
|
|
|
|
|
|
# list plugins
|
|
|
|
set -g @plugin 'tmux-plugins/tpm'
|
2024-01-14 19:00:37 +00:00
|
|
|
set -g @plugin 'fabioluciano/tmux-tokyo-night'
|
2023-10-15 21:00:49 +00:00
|
|
|
set -g @plugin 'tmux-plugins/tmux-yank'
|
2024-01-14 19:00:37 +00:00
|
|
|
|
2024-10-22 19:02:18 +00:00
|
|
|
# tokyo night configuration
|
|
|
|
set -g @theme_plugins 'datetime'
|
|
|
|
|
2024-01-14 19:00:37 +00:00
|
|
|
# load/install plugins
|
2023-10-15 21:00:49 +00:00
|
|
|
run '~/.config/tmux/plugins/tpm/tpm'
|