diff --git a/dotfiles/.tmux.conf b/dotfiles/.tmux.conf index 7d9b700..27546ff 100644 --- a/dotfiles/.tmux.conf +++ b/dotfiles/.tmux.conf @@ -152,6 +152,10 @@ set-window-option -g aggressive-resize on set -g default-command /usr/bin/fish set -g default-shell /usr/bin/fish +# https://github.com/tmux-plugins/tpm/blob/master/docs/automatic_tpm_installation.md +if "test ! -d ~/.tmux/plugins/tpm" \ + "run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'" + # https://github.com/tmux-plugins/tpm # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run '~/.tmux/plugins/tpm/tpm' diff --git a/git-install.sh b/git-install.sh index d68a861..706bab6 100755 --- a/git-install.sh +++ b/git-install.sh @@ -5,9 +5,3 @@ if [ ! -d ~/git/github.com/scopatz/ ]; then git clone https://github.com/scopatz/nanorc.git ~/git/github.com/scopatz fi -# https://github.com/tmux-plugins/tpm#installation -if [ ! -d ~/.tmux/plugins/tpm/ ]; then - git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm - # https://github.com/tmux-plugins/tpm/blob/master/docs/automatic_tpm_installation.md - ~/.tmux/plugins/tpm/bin/install_plugins -fi