From 00d8eca0eabd8667b877d7c0e77bc9e08b6a9267 Mon Sep 17 00:00:00 2001 From: d0zingcat Date: Tue, 31 May 2022 00:18:41 +0800 Subject: [PATCH] add asdf-vm --- .zshrc | 4 +++- setup.sh | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index fd552a2..e22198f 100644 --- a/.zshrc +++ b/.zshrc @@ -18,6 +18,7 @@ antigen bundle vi-mode antigen bundle autojump antigen bundle pip antigen bundle pipenv +antigen bundle asdf antigen bundle Aloxaf/fzf-tab antigen bundle wbingli/zsh-wakatime @@ -163,11 +164,12 @@ fi #export PKG_CONFIG_PATH="/usr/local/opt/zlib/lib/pkgconfig" [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh +[ -f ~/.asdf/asdf.sh ] && source ~/.asdf/asdf.sh [ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh [ -f /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc ] && . /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc [ -f /usr/share/fzf/completion.zsh ] && source /usr/share/fzf/completion.zsh [ -f /usr/share/fzf/key-bindings.zsh ] && source /usr/share/fzf/key-bindings.zsh - +[ -f /opt/asdf-vm/asdf.sh ] && source /opt/asdf-vm/asdf.sh compdef __start_kubectl k #autoload -U +X compinit && compinit #autoload -U +X bashcompinit && bashcompinit diff --git a/setup.sh b/setup.sh index 3c780cf..5e881b9 100755 --- a/setup.sh +++ b/setup.sh @@ -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)"