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