add asdf-vm

This commit is contained in:
d0zingcat
2022-05-31 00:18:41 +08:00
parent d4f0061c7d
commit 00d8eca0ea
2 changed files with 5 additions and 1 deletions

View File

@@ -31,6 +31,8 @@ HOME_DIR="$HOME"
function init() {
sudo xcode-select --install
sudo xcodebuild -license accept
echo 'Installing asdf-vm'
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.10.0
if [[ $(command -v brew) = "" ]]; then
echo "Installing brew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"