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 2022-01-20 18:16 (UTC) (edited on 2022-01-20 18:17 (UTC) by alecmev)

@jtraub Thanks, fixed!
@awl Thanks for noting the packaging changes!

jtraub commented on 2022-01-01 16:42 (UTC)

Why does this package list so many dependencies?

According to the official site [1] only curl and git are deps of asdf itself. Looks like things like unixodbc or openssl are plugin dependencies. Therefore they should be moved to optdepends.

[1] https://asdf-vm.com/guide/getting-started.html#_1-install-dependencies

tz4678 commented on 2021-07-23 16:31 (UTC)

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 (UTC)

@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 (UTC)

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

setopt AUTOCD EXTENDEDGLOB GLOB_COMPLETE COMPLETE_ALIASES HIST_IGNORE_ALL_DUPS
unsetopt beep 
autoload -U compinit
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
compinit
_comp_options+=(globdots)

rbuchberger commented on 2021-01-27 18:24 (UTC)

@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 (UTC)

@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 (UTC) (edited on 2021-01-23 09:38 (UTC) by rbuchberger)

@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 (UTC)

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

rbuchberger commented on 2021-01-21 15:51 (UTC) (edited on 2021-01-23 09:45 (UTC) by rbuchberger)

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/asdf.sh ]; then
  export ASDF_DIR=/opt/asdf-vm
  export ASDF_CONFIG_FILE=$XDG_CONFIG_HOME/asdf/asdfrc
  export ASDF_DATA_DIR=$XDG_DATA_HOME/asdf
  source $ASDF_DIR/asdf.sh

  # Insert autocompletion setup for your shell here.
fi