Skip to content

Commit

Permalink
build: Move TMUX TPM installation from git-install.sh into .tmux.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
vorburger committed Oct 19, 2024
1 parent 1add61a commit 870dda9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 4 additions & 0 deletions dotfiles/.tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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'
6 changes: 0 additions & 6 deletions git-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 870dda9

Please sign in to comment.