Skip to content

Instantly share code, notes, and snippets.

@matti
Created August 18, 2019 11:08
Show Gist options
  • Select an option

  • Save matti/f2a91a4cf23884bcf7bf6da41f59e983 to your computer and use it in GitHub Desktop.

Select an option

Save matti/f2a91a4cf23884bcf7bf6da41f59e983 to your computer and use it in GitHub Desktop.
# source before -u
. /usr/local/opt/asdf/asdf.sh
asdf_tool_versions_path="$(dirname "$(readlink "$0")")/../.tool-versions"
asdf_tool_versions_content=$(cat "$asdf_tool_versions_path")
IFS=$'\n'
for line in $asdf_tool_versions_content; do
name=$(echo "$line" | cut -d' ' -f1)
version=$(echo "$line" | cut -d' ' -f2)
asdf shell "$name" "$version"
done
unset IFS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment