Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation #2

Open
mstruebing opened this issue Dec 12, 2022 · 2 comments
Open

Installation #2

mstruebing opened this issue Dec 12, 2022 · 2 comments

Comments

@mstruebing
Copy link
Contributor

Installation of asdf is hard and error prone, let's try to find an easier way to install and use this tool on all platforms.

@mstruebing mstruebing added question Further information is requested and removed question Further information is requested labels Dec 12, 2022
@aweris
Copy link
Contributor

aweris commented Dec 12, 2022

asdf uses loads asdf.sh in your shell to provide the asdf command. The asdf install script generates this file.
You can also install asdf manually by cloning the repository and sourcing asdf.sh in your shell.

We could use this approach to install asdf in a separate directory and then source it in the shell with a wrapper
script. This would allow us to install and maintain asdf in a separate directory and not pollute the user's home directory.

@aweris
Copy link
Contributor

aweris commented Dec 12, 2022

For this wrapper script to work, you need to have the following installed:

  • Define the avm home directory
  • Clean up existing ASDF_BIN and ASDF_USER_SHIMS from path
  • Export new ASDF_DIR and ASDF_DATA_DIR to point to the avm directory for asdf source

With the above in place, you can now install asdf without polluting your existing environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants