2023-05-30 22:45:28 +02:00
|
|
|
set -ga terminal-overrides ",xterm-256color:Tc"
|
|
|
|
# set-option -g default-terminal "screen-256color"
|
|
|
|
set -s escape-time 0
|
|
|
|
|
|
|
|
unbind C-b
|
|
|
|
set-option -g prefix C-s
|
|
|
|
bind-key C-s send-prefix
|
|
|
|
set -g status-style 'bg=#333333 fg=#5eacd3'
|
|
|
|
|
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-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-05-31 00:58:56 +02:00
|
|
|
|
2023-05-30 22:45:28 +02:00
|
|
|
bind -r D neww -c "#{pane_current_path}" "[[ -e TODO.md ]] && nvim TODO.md || nvim ~/.dotfiles/personal/todo.md"
|