nixos-config/tmux/tmux.conf
2024-12-09 00:48:16 -05:00

40 lines
974 B
Bash

set -g set-titles on
set -g mouse off
unbind C-b
set -g prefix C-f
bind C-f send-prefix
unbind C-l
unbind l
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind u attach-session -c "#{pane_current_path}"
bind s split-window -c "#{pane_current_path}" -h
bind v split-window -c "#{pane_current_path}" -v
#reload config file
bind r source-file ~/.config/tmux/tmux.conf
# nvim recommendations
set -sg escape-time 10
set -g focus-events on
set -sa terminal-overrides ',xterm-256color:RGB'
set -ag terminal-overrides ",xterm-256color:RGB"
set -g base-index 1
source-file ~/.config/tmux/tokyonight_night.tmux
# plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @resurrect-capture-pane-contents 'on'
set -g @continnum-restore 'on'
run "~/.tmux/plugins/tpm/tpm"