From e4cc2792be15f50c8c8e5d40acb95fb729c840dd Mon Sep 17 00:00:00 2001 From: hophacker Date: Sat, 25 Dec 2021 16:23:07 +0800 Subject: [PATCH] feat: add, setup asdf, prepare plugins --- Rakefile | 12 ++++++++++++ asdf/tool-versions | 1 + zsh/prezto-override/zshrc | 2 ++ 3 files changed, 15 insertions(+) create mode 100644 asdf/tool-versions diff --git a/Rakefile b/Rakefile index 026e30a..ecee173 100644 --- a/Rakefile +++ b/Rakefile @@ -40,6 +40,7 @@ task install: %i[submodule_init submodules] do Rake::Task['install_tools'].execute Rake::Task['install_prezto'].execute Rake::Task['install_spacevim'].execute + Rake::Task['install_asdf'].execute install_fonts @@ -69,6 +70,17 @@ task :update_spacevim do ) end +desc 'install asdf' +task :install_asdf do + run 'git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.8.1' + install_files(Dir.glob('asdf/*')) if want_to_install?('tool version manager asdf') + run %( + . $HOME/.asdf/asdf.sh + asdf plugin-add kubetail https://github.com/janpieper/asdf-kubetail.git + asdf install + ) +end + desc 'Install tools which are necessary for developers' task :install_tools do if macos? diff --git a/asdf/tool-versions b/asdf/tool-versions new file mode 100644 index 0000000..1051fd3 --- /dev/null +++ b/asdf/tool-versions @@ -0,0 +1 @@ +kubetail 1.6.13 diff --git a/zsh/prezto-override/zshrc b/zsh/prezto-override/zshrc index 68dae08..53e9c73 100644 --- a/zsh/prezto-override/zshrc +++ b/zsh/prezto-override/zshrc @@ -26,3 +26,5 @@ export NVM_DIR="$HOME/.nvm" # Add RVM to PATH for scripting. Make sure this is the last PATH variable change. export PATH="$PATH:$HOME/.rvm/bin" + +[ -s $HOME/.asdf/asdf.sh ] && . $HOME/.asdf/asdf.sh