dotfiles/dot_tmux.conf

54 lines
1.6 KiB
Plaintext
Raw Normal View History

2023-03-07 22:37:16 +00:00
set -g default-terminal "screen-256color"
2023-03-09 21:05:38 +00:00
set -g status off
2023-03-07 22:37:16 +00:00
set -g prefix C-a
unbind C-b
bind-key C-a send-prefix
unbind %
2023-03-09 20:20:22 +00:00
bind v split-window -h
2023-03-07 22:37:16 +00:00
unbind '"'
2023-03-09 20:20:22 +00:00
bind b split-window -v
2023-03-07 22:37:16 +00:00
unbind r
bind r source-file ~/.tmux.conf
bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
bind -r h resize-pane -L 5
bind -r m resize-pane -Z
2023-11-02 18:31:48 +00:00
bind-key u command-prompt -p "join pane from:" "join-pane -s '%%'"
bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'"
2023-03-07 22:37:16 +00:00
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection # start selecting text with "v"
2023-03-09 22:41:07 +00:00
#bind-key -T copy-mode-vi 'y' send -X copy-selection # copy text with "y"
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
2023-03-07 22:37:16 +00:00
unbind -T copy-mode-vi MouseDragEnd1Pane # don't exit copy mode after dragging with mouse
set -g mouse on
# tpm plugin
set -g @plugin 'tmux-plugins/tpm'
# list of tmux plugins
set -g @plugin 'christoomey/vim-tmux-navigator' # for navigating panes and vim/nvim with Ctrl-hjkl
set -g @plugin 'jimeh/tmux-themepack' # to configure tmux theme
set -g @plugin 'tmux-plugins/tmux-resurrect' # persist tmux sessions after computer restart
set -g @plugin 'tmux-plugins/tmux-continuum' # automatically saves sessions for you every 15 minutes
2023-03-09 20:49:00 +00:00
set -g @themepack 'basic' # use this theme for tmux
2023-03-07 22:37:16 +00:00
set -g @resurrect-capture-pane-contents 'on' # allow tmux-ressurect to capture pane contents
set -g @continuum-restore 'on' # enable tmux-continuum functionality
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
2023-03-09 20:20:22 +00:00
run '~/.tmux/plugins/tpm/tpm'