Skip to content

Commit

Permalink
Update tmux plugins on install
Browse files Browse the repository at this point in the history
  • Loading branch information
statico committed Jun 6, 2018
1 parent 3da128b commit 6366572
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,20 @@ if which git-lfs >/dev/null 2>&1 ; then
git lfs install
fi

echo "Setting up tmux..."
if [ -e "$HOME/.tmux/plugins/tpm" ]; then
pushd "$HOME/.tmux/plugins/tpm" >/dev/null
git pull -q origin master
popd >/dev/null
if which tmux >/dev/null 2>&1 ; then
echo "Setting up tmux..."
if [ -e "$HOME/.tmux/plugins/tpm" ]; then
pushd "$HOME/.tmux/plugins/tpm" >/dev/null
git pull -q origin master
popd >/dev/null
else
git clone -q https://github.com/tmux-plugins/tpm "$HOME/.tmux/plugins/tpm"
fi
$HOME/.tmux/plugins/tpm/scripts/install_plugins.sh >/dev/null
$HOME/.tmux/plugins/tpm/scripts/clean_plugins.sh >/dev/null
$HOME/.tmux/plugins/tpm/scripts/update_plugin.sh >/dev/null
else
git clone -q https://github.com/tmux-plugins/tpm "$HOME/.tmux/plugins/tpm"
echo "Skipping tmux setup because tmux isn't installed."
fi

postinstall="$HOME/.postinstall"
Expand Down

0 comments on commit 6366572

Please sign in to comment.