install: Add 'task' to asdf plugins

Also update rbenv/etc if they exist when we run.
This commit is contained in:
2023-09-25 09:45:05 +01:00
parent f6a105932e
commit ceb0f0b8b9

11
install
View File

@@ -53,11 +53,6 @@ done
mkdir -p ~/src/
# git-prompt
# if [ ! -e ~/.git-prompt.sh ]; then
# curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh -o ~/.git-prompt.sh
# fi
# scripts
mkdir -p ~/bin
for bin in $BASE/bin/*; do
@@ -86,16 +81,19 @@ if [ ! -d "$HOME/.rbenv" ] ; then
git clone https://github.com/rbenv/ruby-build.git "$HOME/.rbenv/plugins/ruby-build"
else
echo "Already have $HOME/.rbenv"
git -C ~/.rbenv pull
git -C ~/.rbenv/plugins/ruby-build pull
fi
if [ ! -d "$HOME/.asdf" ] ; then
git clone https://github.com/asdf-vm/asdf.git "$HOME/.asdf"
else
echo "Already have $HOME/.asdf"
git -C ~/.asdf pull
fi
# Add and install these ones.
ADD_AND_INSTALL="golang ripgrep ag fd bat jq nodejs fzf github-cli"
ADD_AND_INSTALL="golang ripgrep ag fd bat jq nodejs fzf github-cli task"
if [ $IS_MAC == 1 ] ; then
echo "Detected macOS, installing extra packages via asdf."
ADD_AND_INSTALL="$ADD_AND_INSTALL git tmux vim"
@@ -131,6 +129,7 @@ if [ ! -d ~/.tmux/plugins/tpm ] ; then
fi
else
echo "Already have ~/.tmux/plugins/tpm"
git -C ~/.tmux/plugins/tpm pull
fi
# ./install-vim