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'