Created
August 18, 2019 11:08
-
-
Save matti/f2a91a4cf23884bcf7bf6da41f59e983 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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