Package Details: asdf-vm 0.8.1-1

Git Clone URL: (read-only, click to copy)
Package Base: asdf-vm
Description: Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more
Upstream URL:
Licenses: MIT
Submitter: alecmev
Maintainer: alecmev
Last Packager: alecmev
Votes: 12
Popularity: 0.33
First Submitted: 2019-05-27 20:24
Last Updated: 2021-05-26 15:12

Pinned Comments

alecmev commented on 2020-02-10 11:56

As mentioned in post_install, please, follow the official instructions to make asdf-vm work, replacing $HOME/.asdf with /opt/asdf-vm.

The completions are already installed, just make sure your shell is configured to use them. That is, don't source completions/asdf.bash or fpath=(completions $fpath).

Thanks for bringing this up, @odelucca. This is worth highlighting in a pinned comment, installation logs are too noisy.

Latest Comments

1 2 Next › Last »

tz4678 commented on 2021-07-23 16:31

If you have conflict with system python version, add this line to your .zshrc/.bashrc:

alias yay='env PATH="${PATH//~\/.asdf\/shims:/}" yay'

Some AUR packages installs into asdf home directory, because use python command instead /usr/bin/python.

alecmev commented on 2021-04-06 09:16

@KarlWithK Do completions from other packages work? If not, then this sounds like a general Zsh issue, and it's better to take it to the forums.

KarlWithK commented on 2021-04-05 04:14

I cannot get autocomplete to work with my setup, and I do not know why.

unsetopt beep 
autoload -U compinit
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'

rbuchberger commented on 2021-01-27 18:24

@alecmev - yeah, I actually submitted a pull request about that. Sorry to clog up the comments here.

Looks like the 'add it to our CI' idea died in the crib. I've worked with github actions a bit, when I get time I'll look at putting together a pull request for them that automates updating the AUR. Otherwise, if you're tired of maintaining this package I'd be willing to take over.

alecmev commented on 2021-01-27 16:39

@rbuchberger These are valid concerns, but the right place to report them is upstream, IMO. I just maintain the PKGBUILD (and I don't even want to, haha).

rbuchberger commented on 2021-01-23 09:34

@alecmev - You're right, thanks! I've edited my previous comment to mention that.

I like to keep my home directory tidy and follow the XDG spec. Also as I said the docs don't mention $ASDF_DIR, or that it's possible to have the asdf scripts in one directory while keeping plugins in another. If you have to dig into the scripts themselves to work out their behavior, it's worth mentioning so the next person doesn't have to.

alecmev commented on 2021-01-21 19:56

@rbuchberger Out of the box, when $ASDF_DATA_DIR is unset, asdf defaults to $HOME/.asdf.

rbuchberger commented on 2021-01-21 15:51

I couldn't find this mentioned in the asdf-vm docs, but $ASDF_DIR sets where the asdf scripts are located, while $ASDF_DATA_DIR sets where plugins, installations, and shims are located. Both default to $HOME/.asdf; when using this package you should set $ASDF_DIR=/opt/asdf-vm.

If you would like to avoid cluttering your home directory, you can set $ASDF_DATA_DIR=$XDG_DATA_HOME/asdf. I suggest the following configuration:

if [ -f /opt/asdf-vm/ ]; then
  export ASDF_DIR=/opt/asdf-vm
  export ASDF_CONFIG_FILE=$XDG_CONFIG_HOME/asdf/asdfrc
  source $ASDF_DIR/

  # Insert autocompletion setup for your shell here.

alecmev commented on 2021-01-12 19:03

@axolx Why /opt/asdf-vm/lib/ The instructions reference $HOME/.asdf/, which translates into /opt/asdf-vm/, no lib.

axolx commented on 2021-01-11 04:58

After installing asdv-vm (0.8.0-1) following the instructions in post_install, running the asdf shell function fails as follows:

$ asdf
bash: asdf: command not found

I believe it's because the eval statement on line 12 in /opt/asdf-vm/lib/ fails to find /opt/asdf-vm/bin/asdf unless /opt/asdf-vm/bin is in the PATH environment variable:

eval "$(asdf export-shell-version sh "$@")" # asdf_all

Are the instructions missing a step to include /opt/asdf-vm/bin in the PATH environment variable?