mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 06:12:34 +00:00
Added tmux-sessionator and updated tmux config
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user