diff --git a/.tmux.conf b/.tmux.conf index c18c025..76185c8 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1,6 +1,18 @@ +# prefix unbind C-b set -g prefix C-Space +# send prefix to nested session after ctrl a +bind-key -n C-a send-prefix + +# default shell +set-option -g default-shell /bin/zsh + +#for copying to sys clipboard +bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard" +bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard" +bind -T copy-mode-vi C-j send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard" + bind | split-window -h bind - split-window -v unbind '"' @@ -11,9 +23,6 @@ bind -n M-Right select-pane -R bind -n M-Up select-pane -U bind -n M-Down select-pane -D -# send prefix to nested session after ctrl a -bind-key -n C-a send-prefix - set -g mouse on set-window-option -g mode-keys vi