diff --git a/tmux/tmux.conf b/tmux/tmux.conf index f6df11c..cf0d77a 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -375,5 +375,9 @@ bind -T off C-q \ set -u window-status-current-format \;\ refresh-client -S +# Auto install tpm and plugins automatically when tmux is started +if "test ! -d ~/.tmux/plugins/tpm" \ + "run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'" + # Initialize TPM (must be last) run '~/.tmux/plugins/tpm/tpm'