From 55a159153a7e9f5f8428f64afb3485787903e6bf Mon Sep 17 00:00:00 2001 From: Graham Helton Date: Mon, 10 Apr 2023 19:40:31 -0400 Subject: [PATCH] added tmux --- .tmux.conf | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .tmux.conf diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 0000000..75d8fed --- /dev/null +++ b/.tmux.conf @@ -0,0 +1,26 @@ + #Tmux Conf test + set -g mouse on + +# remap prefix from 'C-b' to 'C-a' +# unbind C-b +# set-option -g prefix C-a +# bind-key C-a send-prefix + +# split panes using | and - + +# Vim for switching window +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R + +bind C-c run "tmux save-buffer - | xclip -i -sel clipboard" + +#bind C-v run "tmux set-buffer "$(xclip -o -sel clipboard)"; tmux paste-buffer" +setw -g mode-keys vi + + +bind P paste-buffer +bind-key -T copy-mode-vi v send-keys -X begin-selection +bind-key -T copy-mode-vi y send-keys -X copy-selection +bind-key -T copy-mode-vi r send-keys -X rectangle-toggle