-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* wip - Recommend having a wrapper direnv function so that people dont have to write asdf exec direnv stuff - Old shim is now part of asdf direnv extension command. - You can have an .envrc with use asdf even if the directory has no .tool-versions file. All asdf current tools will be activated. In alphabetical order, since we only preserve PATH order when a .tool-versions file is present. - Remove all variants of use asdf * have been removed. Doing use asdf will just ask asdf which versions are available in current directory. use asdf local/global were just internal apis and not intended for people to use. use asdf tool version was a bad choice since people should store versions on their .tool-versions file. - Move commands to new asdf `lib/commands/*.bash` location See https://asdf-vm.com/#/plugins-create?id=extension-commands-for-asdf-cli * use `asdf exec direnv` in .bashrc (#39) asdf direnv triggers a dirname error Co-authored-by: Michael Paul Killian <[email protected]>
- Loading branch information
1 parent
8fab1a9
commit 414e584
Showing
7 changed files
with
168 additions
and
218 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
use_asdf() { | ||
source_env "$(asdf direnv _asdf_cached_envrc "$@")" | ||
} | ||
|
||
if [ "1" == "$DIRENV_IN_ENVRC" ] && [ "$0" == "${BASH_SOURCE[0]}" ]; then | ||
echo "$0" | ||
fi |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Oops, something went wrong.