I wonder Is there a way to use asdf as global for every user?
to not duplicate plugins and save disks space.
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
Most helpful comment
export ASDF_DATA_DIR=/opt/asdf
make the trick, so far so good