From 7aa9c81c7a76f36d223907a551a250c23453a56c Mon Sep 17 00:00:00 2001 From: Marley Rae Date: Sun, 28 Jan 2024 14:59:27 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Rename=20tmux.conf=20to=20copy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tmux/{.tmux.conf.symlink => .tmux.conf.copy} | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) rename tmux/{.tmux.conf.symlink => .tmux.conf.copy} (74%) diff --git a/tmux/.tmux.conf.symlink b/tmux/.tmux.conf.copy similarity index 74% rename from tmux/.tmux.conf.symlink rename to tmux/.tmux.conf.copy index dad7283..b5b2df5 100644 --- a/tmux/.tmux.conf.symlink +++ b/tmux/.tmux.conf.copy @@ -2,7 +2,7 @@ set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-resurrect' set -g @plugin 'catppuccin/tmux' - +# catppuccin set -g @catppuccin_flavour 'mocha' set -g @catppuccin_window_left_separator "" @@ -25,6 +25,18 @@ set -g @catppuccin_status_connect_separator "no" set -g @catppuccin_directory_text "#{pane_current_path}" +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +set-window-option -g mode-keys vi + +bind-key -T copy-mode-vi 'v' send -X begin-selection +bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel + +bind | split-window -h -c "#{pane_current_path}" +bind - split-window -v -c "#{pane_current_path}" + +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + # Install tpm if not already installed. if "test ! -d ~/.tmux/plugins/tpm" \ "run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"