@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
.
Search Criteria
Package Details: asdf-vm 0.15.0-1
Package Actions
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: | 41 |
Popularity: | 3.15 |
First Submitted: | 2019-05-27 20:24 (UTC) |
Last Updated: | 2024-12-28 17:00 (UTC) |
Dependencies (14)
- curl (curl-http3-ngtcp2AUR, curl-gitAUR, curl-c-aresAUR)
- git (git-gitAUR, git-glAUR)
- autoconf (autoconf-gitAUR) (optional)
- automake (automake-gitAUR) (optional)
- bash-completion (bash-completion-gitAUR) (optional) – For completions to work in Bash
- libffi (libffi-gitAUR) (optional)
- libtool (libtool-gitAUR) (optional)
- libxslt (libxslt-gitAUR) (optional)
- libyaml (libyaml-gitAUR) (optional)
- ncurses (ncurses-gitAUR) (optional)
- openssl (openssl-gitAUR, openssl-staticAUR) (optional)
- readline (readline-gitAUR) (optional)
- unixodbc (unixodbc-gitAUR) (optional)
- unzip (unzip-natspecAUR, unzip-zstdAUR) (optional) – Needed by some plugins, like Elixir
Required by (1)
Sources (1)
alecmev commented on 2021-01-12 19:03 (UTC)
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
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
orfpath=(completions $fpath)
.Thanks for bringing this up, @odelucca. This is worth highlighting in a pinned comment, installation logs are too noisy.