-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_asdf.sh
23 lines (19 loc) · 913 Bytes
/
install_asdf.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
source $HOME/.dotfiles/variables/utils.sh
source $HOME/.dotfiles/functions/environment.sh
if [[ $ENVIRONMENT == ubuntu ]]; then
git clone -q https://github.com/asdf-vm/asdf.git $HOME/.asdf >>/dev/null && echo '. $HOME/.asdf/asdf.sh' >>$HOME/.bashrc && echo '. $HOME/.asdf/completions/asdf.bash' >>$HOME/.bashrc && echo -e "install asdf ${UTILS_DONE}" || echo -e "install asdf ${UTILS_ABORT}"
source ~/.bashrc
elif [[ $ENVIRONMENT == mac ]]; then
brew install asdf >>/dev/null && echo -e "install ${1} ${UTILS_DONE}" || echo -e "install ${1} ${UTILS_ABORT}"
fi
asdf plugin add nodejs
asdf plugin add php
asdf plugin add golang https://github.com/kennyp/asdf-golang.git
asdf plugin add java https://github.com/halcyon/asdf-java.git
asdf plugin add kotlin
asdf plugin add racket
asdf plugin add clojure
echo "You can now run:"
echo "asdf install php latest"
echo "asdf global php latest"