if [ ! -d "$HOME/.asdf" ]; then
    git clone https://github.com/asdf-vm/asdf.git $HOME/.asdf
    pushd $HOME/.asdf
    git checkout "$(git describe --abbrev=0 --tags)"
    popd
fi

_omz_plugin asdf

adsf_plugins=(
    java
    scala
    clojure

    python
    poetry

    github-cli
    direnv
    terraform
    packer
    consul

    skaffold
    minikube
    kubectl
)
for plugin in $adsf_plugins; do
    (asdf plugin list | grep $plugin > /dev/null) || asdf plugin add $plugin
    asdf install $plugin latest > /dev/null
    asdf global $plugin $(asdf latest $plugin) > /dev/null
done

# Post installation settings
eval "$(direnv hook zsh)"
_omz_plugin kubectl
export PYTHONWARNINGS=ignore

if [ ! -d "$HOME/.asdf" ]; then
    git clone https://github.com/asdf-vm/asdf.git $HOME/.asdf
    pushd $HOME/.asdf
    git checkout "$(git describe --abbrev=0 --tags)"
    popd
fi

_omz_plugin asdf

adsf_plugins=(
    java
    scala
    clojure

    python
    poetry

    github-cli
    direnv
    terraform
    packer
    consul

    skaffold
    minikube
    kubectl
)
for plugin in $adsf_plugins; do
    (asdf plugin list | grep $plugin > /dev/null) || asdf plugin add $plugin
done

# Post installation settings
eval "$(direnv hook zsh)"
_omz_plugin kubectl
export PYTHONWARNINGS=ignore

Remove the part installing tools on every zsh shell.
Remove the part installing tools on every zsh shell.
