install: Add 'task' to asdf plugins
Also update rbenv/etc if they exist when we run.
This commit is contained in:
11
install
11
install
@@ -53,11 +53,6 @@ done
|
|||||||
|
|
||||||
mkdir -p ~/src/
|
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
|
# scripts
|
||||||
mkdir -p ~/bin
|
mkdir -p ~/bin
|
||||||
for bin in $BASE/bin/*; do
|
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"
|
git clone https://github.com/rbenv/ruby-build.git "$HOME/.rbenv/plugins/ruby-build"
|
||||||
else
|
else
|
||||||
echo "Already have $HOME/.rbenv"
|
echo "Already have $HOME/.rbenv"
|
||||||
|
git -C ~/.rbenv pull
|
||||||
|
git -C ~/.rbenv/plugins/ruby-build pull
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d "$HOME/.asdf" ] ; then
|
if [ ! -d "$HOME/.asdf" ] ; then
|
||||||
git clone https://github.com/asdf-vm/asdf.git "$HOME/.asdf"
|
git clone https://github.com/asdf-vm/asdf.git "$HOME/.asdf"
|
||||||
else
|
else
|
||||||
echo "Already have $HOME/.asdf"
|
echo "Already have $HOME/.asdf"
|
||||||
|
git -C ~/.asdf pull
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add and install these ones.
|
# 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
|
if [ $IS_MAC == 1 ] ; then
|
||||||
echo "Detected macOS, installing extra packages via asdf."
|
echo "Detected macOS, installing extra packages via asdf."
|
||||||
ADD_AND_INSTALL="$ADD_AND_INSTALL git tmux vim"
|
ADD_AND_INSTALL="$ADD_AND_INSTALL git tmux vim"
|
||||||
@@ -131,6 +129,7 @@ if [ ! -d ~/.tmux/plugins/tpm ] ; then
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Already have ~/.tmux/plugins/tpm"
|
echo "Already have ~/.tmux/plugins/tpm"
|
||||||
|
git -C ~/.tmux/plugins/tpm pull
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ./install-vim
|
# ./install-vim
|
||||||
|
|||||||
Reference in New Issue
Block a user