From b6f33fc3c38595c8f381b6b9c0c06de6f4fe3429 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sun, 9 Apr 2023 02:22:06 -0400 Subject: [PATCH] tmux: Improve initial plugin setup --- .config/tmux/tmux.conf | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index a93f7f9..9516b38 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -31,10 +31,12 @@ set-option -g @plugin 'noscript/tmux-mighty-scroll' set-option -g @mighty-scroll-by-line 'man less pager fzf emacs emacsclient' # install/update tpm -if-shell "test ! -d ~/.config/tmux/plugins/tpm" \ - "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' +if-shell "test ! -d ~/.config/tmux/plugins/tpm" { + run-shell 'git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm' +} # start tpm run-shell '~/.config/tmux/plugins/tpm/tpm' +# install and update plugins +run-shell '$TMUX_PLUGIN_MANAGER_PATH/tpm/bin/install_plugins' +run-shell '$TMUX_PLUGIN_MANAGER_PATH/tpm/bin/clean_plugins' +run-shell '$TMUX_PLUGIN_MANAGER_PATH/tpm/bin/update_plugins all'