Commit graph

14 commits

Author SHA1 Message Date
Muhammed Oguz
4bc1d27ef5 fix(asdf): allow plugin to initialize if asdf is installed in ~/.asdf
Previously, the plugin exited early if the `asdf` command was not already
in $PATH:

  (( ! $+commands[asdf] )) && return

This broke valid setups where `asdf` is installed manually in ~/.asdf
and not yet sourced globally (e.g., via .zshrc). Such installs are still
recommended in the official asdf documentation.

This change replaces the early exit with a check for the presence of
~/.asdf, so the plugin only runs if the user has a modern asdf setup,
while avoiding premature return before `$PATH` and completions are set up.

This preserves the new plugin behavior (removal of legacy <0.16 logic),
while restoring compatibility for the common manual install path.
2025-04-11 12:09:47 +03:00
Carlo Sala
a78d006faa
fix(asdf)!: remove legacy <0.16 integration
`asdf` plugin only supports asdf 0.16 and ahead from now on.
2025-03-29 10:47:03 +01:00
Kartik Vashistha
2f3a141f65
docs(asdf): match README with 0.16 (#13026)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
2025-03-29 10:42:46 +01:00
Carlo Sala
4d9d346718
feat(asdf): support asdf v0.16 ahead
Co-authored-by: Valgard Trontheim <github@trontheim.de>

Closes #12964
Closes #12967
2025-02-12 20:15:25 +01:00
Marc Cornellà
efafef8495
docs: improve several plugin READMEs and add one for ssh plugin 2024-08-09 09:44:46 +02:00
Thomas Faugier
278bcfc93b
feat(asdf): load zsh completions instead of bash ones
Closes #11143
Closes #8779

Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
2023-10-02 20:27:52 +02:00
Eric Hsieh
820b8bd40f
docs(autojump): fix outdated links and update description (#11289) 2022-10-25 21:35:30 +02:00
alexandregv
6babcbd884
feat(asdf): add support for archlinux/AUR package (#9893)
Closes #9893
2021-12-21 19:12:08 +01:00
Sergei Shishov
bd0b4b64c6
fix(asdf): fix path to Homebrew installation of asdf (#10481)
Fixes #10484
Closes #10481
2021-12-21 19:08:53 +01:00
Albert Serrallé Ríos
7c9c148ec2
asdf: fix completions if ASDF_DIR is already exported (#8538) 2020-05-23 19:02:56 +02:00
eric-christian
86ea319536 asdf: fix homebrew installation path (#7582)
* The check for the asdf installation directory is more precise:

    The existence of the directory `$HOME/.asdf` does not mean that it is the installation
    directory of `asdf`. It will also be created after installing at least one asdf plugin.

* Completions, while installed with homebrew, are now expected on an alternative location.
2019-02-08 15:14:09 +01:00
John Burwell
05713785b0 asdf: add Homebrew and completion support (#6749)
* Modifies the search logic for asdf to include Homebrew when it is
installed. The implementation is adapted from the pyenv plugin.
2018-08-07 18:10:35 +02:00
Julian Laubstein
c7185c35f3 Add completions to asdf plugin (#6046) 2018-04-22 20:27:12 +02:00
Rob Loach
616ac67924 Add 'asdf' plugin 2016-03-30 02:05:07 -04:00