Added tmux-sessionator and updated tmux config

This commit is contained in:
Michael Housh
2023-10-02 22:47:32 -04:00
parent f0a5d85dea
commit 353b669f27
3 changed files with 39 additions and 4 deletions

View File

@@ -33,6 +33,10 @@ set -g prefix C-a
unbind C-b
bind C-a send-prefix
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 'xclip -in -selection clipboard'
# Turn the mouse on, but without copy mode dragging
set -g mouse on
unbind -n MouseDrag1Pane
@@ -64,8 +68,11 @@ bind -T prefix l select-pane -R
bind -n S-Left previous-window
bind -n S-Right next-window
bind-key -r f run-shell "tmux neww ~/.local/scripts/tmux-sessionator"
bind-key -r C run-shell "tmux neww ~/.local/scripts/tmux-sessionator ~/.dotfiles"
# reload new changes
bind-key R source-file ~/.config/tmux/tmux.conf\; \display-message "source-file done"
bind-key r source-file ~/.config/tmux/tmux.conf\; \display-message "source-file done"
######################################## Plugins ########################################
set -g @plugin 'tmux-plugins/tpm'
@@ -86,4 +93,5 @@ set -g @plugin 'erikw/tmux-powerline'
#neww -d
#neww -d neww -d
# Needs to stay at the bottom.
run '~/.config/tmux/plugins/tpm/tpm'