2023-05-30 22:45:28 +02:00
|
|
|
set -ga terminal-overrides ",xterm-256color:Tc"
|
2023-06-01 23:54:39 +02:00
|
|
|
set-option -g default-terminal "screen-256color"
|
2023-05-30 22:45:28 +02:00
|
|
|
set -s escape-time 0
|
|
|
|
|
|
|
|
unbind C-b
|
|
|
|
set-option -g prefix C-s
|
|
|
|
bind-key C-s send-prefix
|
2023-05-31 11:21:05 +02:00
|
|
|
# set -g status-style 'bg=#333333 fg=#5eacd3'
|
2023-05-30 22:45:28 +02:00
|
|
|
|
2023-05-31 00:58:56 +02:00
|
|
|
bind r source-file "$XDG_CONFIG_HOME/tmux/tmux.conf"
|
2023-05-30 22:45:28 +02:00
|
|
|
set -g base-index 1
|
|
|
|
|
2023-06-01 23:54:39 +02:00
|
|
|
set -g status-style 'bg=#45403d fg=#d4be98'
|
|
|
|
set -g status-left-length 30
|
|
|
|
|
2023-05-31 00:58:56 +02:00
|
|
|
set-window-option -g mode-keys vi
|
|
|
|
bind -T copy-mode-vi v send-keys -X begin-selection
|
|
|
|
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'pbcopy'
|
|
|
|
|
2023-05-30 22:45:28 +02:00
|
|
|
# vim-like pane switching
|
|
|
|
bind -r ^ last-window
|
|
|
|
bind -r k select-pane -U
|
|
|
|
bind -r j select-pane -D
|
|
|
|
bind -r h select-pane -L
|
|
|
|
bind -r l select-pane -R
|
|
|
|
|
2023-06-01 23:54:39 +02:00
|
|
|
bind -r D neww -c "#{pane_current_path}" "nvim TODO.md"
|
2023-05-31 00:58:56 +02:00
|
|
|
|
2023-06-01 23:54:39 +02:00
|
|
|
bind-key -r f run-shell "tmux neww ~/.config/tmux/tmux-sessionizer"
|
2023-06-02 16:02:48 +02:00
|
|
|
bind-key -r g run-shell "tmux neww ~/.config/tmux/tmux-sessionizer $XDG_CONFIG_HOME"
|
2023-06-01 23:54:39 +02:00
|
|
|
bind-key -r T run-shell "tmux neww ~/.config/tmux/tmux-sessionizer ~/Desktop/temp"
|
2023-06-02 16:02:48 +02:00
|
|
|
bind-key -r R run-shell "tmux neww ~/.config/tmux/tmux-sessionizer ~"
|
2023-05-31 11:21:05 +02:00
|
|
|
|
2023-06-01 23:54:39 +02:00
|
|
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
|
|
|
run '~/.config/tmux/plugins/tpm/tpm'
|