Asdf: Is there a way to use asdf as system global?

Created on 7 Oct 2019  路  3Comments  路  Source: asdf-vm/asdf

I wonder Is there a way to use asdf as global for every user?
to not duplicate plugins and save disks space.

Most helpful comment

export ASDF_DATA_DIR=/opt/asdf
make the trick, so far so good

All 3 comments

Yes! ASDF is pretty much agnostic to where it is installed. Just clone asdf at any shared location, say /opt/asdf and make sure all users have permissions for reading and executing binaries installed there. Have their shell profile source the asdf.sh environment and viol谩.

I'd recommend having a single user manage installed tool versions, since asdf has no restriction on what a plugin-install command can do, and what permissions files are created with. So, I guess the best would be, install things for other users and make sure everyone can read and execute.

unfortunately plugins go to $HOME/.asdf dir
instead /opt/asdf

export ASDF_DATA_DIR=/opt/asdf
make the trick, so far so good

Was this page helpful?
0 / 5 - 0 ratings