Package Details: asdf-vm 0.14.0-1

Git Clone URL: https://aur.archlinux.org/asdf-vm.git (read-only, click to copy)
Package Base: asdf-vm
Description: Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more
Upstream URL: https://asdf-vm.com
Licenses: MIT
Submitter: alecmev
Maintainer: alecmev (rnestler)
Last Packager: rnestler
Votes: 35
Popularity: 0.82
First Submitted: 2019-05-27 20:24 (UTC)
Last Updated: 2024-01-20 17:53 (UTC)

Dependencies (14)

Required by (1)

Sources (1)

Pinned Comments

alecmev commented on 2020-02-10 11:56 (UTC) (edited on 2022-01-20 18:16 (UTC) by alecmev)

Follow the official instructions to make asdf-vm work, see the sections titled "YOUR_SHELL & Pacman".

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

« First ‹ Previous 1 2 3 4 Next › Last »

alecmev commented on 2021-01-12 19:03 (UTC)

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

axolx commented on 2021-01-11 04:58 (UTC)

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/asdf.sh 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?

alecmev commented on 2020-10-12 18:12 (UTC)

@ruy16109 Thanks for notifying, I've updated the link, though it isn't 100% accurate, things will get better when this is merged.

Checking the built package I noticed that a lot of files are placed in /opt. What is the rationale for that?

There's no better way at the moment.

I don't think I can use asdf unless I source the file /opt/asdf-vm/asdf.fish

I've tested again, and it works fine without extra configuration. Just run fish, type asdf and press Tab.

ruy16109 commented on 2020-10-12 17:40 (UTC)

The link shared by @alecmev is now a dead link.

Checking the built package I noticed that a lot of files are placed in /opt. What is the rationale for that?

As for using asdf-vm under fish, since I am unable to refer to the website, I don't think I can use asdf unless I source the file /opt/asdf-vm/asdf.fish.

alecmev commented on 2020-10-06 10:11 (UTC)

@itsbenji That shouldn't be necessary, I remember testing Fish and the completions worked fine with a vanilla config. As per the docs, it's enough to put them in /usr/share/fish/vendor_completions.d, as already done in the PKGBUILD. Could there be an issue in your config?

monchi commented on 2020-10-06 08:08 (UTC)

To use this package on fish shell, you will need to add line below to ~/.config/fish/config.fish

source /opt/asdf-vm/asdf.fish

then source ~/.config/fish/config.fish

alecmev commented on 2020-09-15 09:39 (UTC)

@errcsool #704 addresses this, hopefully merged soon, but it's good to have bash-completion in optdepends regardless, thanks for the tip!

errcsool commented on 2020-09-13 18:44 (UTC)

@alecmev I think you should include in bash-completion as an optional dependency for completions. I did not understand this at first.

I was able to find out that there is a standard bash-completion directory by looking through your PKGBUILD. I then tried to source the completion files directly with a loop in my .bashrc file. This didn't work completely, as the bash-completion file defines the have() function, which is necessary for some aspects of the bash completion scripts.

Thanks!

alecmev commented on 2020-02-10 11:56 (UTC) (edited on 2022-01-20 18:16 (UTC) by alecmev)

Follow the official instructions to make asdf-vm work, see the sections titled "YOUR_SHELL & Pacman".

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.

odelucca commented on 2020-02-07 14:43 (UTC)

In order for this package to work, you must add the following on the ~/.bashrc or ~/.zshrc:

# asdf
source /opt/asdf-vm/asdf.sh
source /opt/asdf-vm/completions/asdf.bash