From ceb0f0b8b9dcc6910464bb7e5195f2ee2ccc9c12 Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Mon, 25 Sep 2023 09:45:05 +0100 Subject: [PATCH] install: Add 'task' to asdf plugins Also update rbenv/etc if they exist when we run. --- install | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/install b/install index c249be7..7cd50b0 100755 --- a/install +++ b/install @@ -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