From a2a8ff9a0dafc1d934eca0256dcd5f0b0066e07a Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Fri, 7 Apr 2023 23:31:39 -0400 Subject: [PATCH] Add Tmux Plugin Manager --- .config/tmux/tmux.conf | 12 ++++++++++++ .gitignore | 1 + 2 files changed, 13 insertions(+) create mode 100644 .gitignore diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 703dd8c..4201302 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -24,3 +24,15 @@ bind -r M-h resize-pane -L 5 bind -r M-j resize-pane -D 5 bind -r M-k resize-pane -U 5 bind -r M-l resize-pane -R 5 + +# plugins +set-option -g @plugin 'tmux-plugins/tpm' + +# install/update tpm +if-shell "test ! -d " \ + "run 'git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm'" +run-shell '~/.config/tmux/plugins/tpm/bin/install_plugins' +run-shell '~/.config/tmux/plugins/tpm/bin/clean_plugins' +run-shell '~/.config/tmux/plugins/tpm/bin/update_plugins all' +# start tpm +run-shell '~/.config/tmux/plugins/tpm/tpm' diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d75866a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/.config/tmux/plugins/