Commit Graph

1172 Commits

Author SHA1 Message Date
Phil Pennock
a8016c321d zsh-native asdf completion setup
Add a zsh-native completion system function for `asdf`.

I too often hit snags with bash completions in zsh, so I bias strongly
towards zsh-native completions.

This needs to end up in `$fpath` with a filename of `_asdf` but it
seemed unfriendly to use that name in this repo, so call it `_asdf.zsh`
and document a symlink.  Mark the file as executable to be compatible
with one convention of "personal functions should only autoload if
executable" (but that's probably so historic that very few people still
use it; I'm one of them, though).
2020-02-19 16:06:00 -05:00
Victor Borja
51104c9cea
Merge pull request #647 from jsejcksn/master
Update examples using subcommands
2020-02-14 14:41:24 -06:00
Victor Borja
543e16ef5b
Merge pull request #657 from asdf-vm/fix/consistent-use-pluginname
fix: consistent use of plugin_name
2020-02-14 14:36:23 -06:00
Victor Borja
62c4fdb163
Merge pull request #623 from jonmast/prevent-exec-recursion
Ignore shim directory for executable lookups
2020-02-14 14:26:03 -06:00
James Hegedus
c69ed91886
fix: consistent use of plugin_name
All other instances of `check_if_plugin_exists` pass the value as `plugin_name`. Minor fix for consistency.
2020-02-14 17:21:58 +11:00
James Hegedus
a409b334a9
Merge branch 'master' into master 2020-02-14 17:14:33 +11:00
Paul
18b07ecaa6
Default ZSH_VERSION to empty string. (#656)
This avoids borking when a user has `set -u` (a.k.a. the `nounset`
option) enabled.
2020-02-14 16:50:11 +11:00
Raul de Melo
4911678c5b docs: update example with maintained project url (#652) 2020-02-10 08:00:41 +11:00
Trevor Brown
29e9b46ac5
Merge pull request #654 from asdf-vm/tb/fix-path-version
Fix Path Versions
2020-02-08 07:54:46 -05:00
Trevor Brown
43bd2d2cb5 Address linting errors 2020-02-07 22:51:03 -05:00
Trevor Brown
c0222b0b4e Add back in support for path versions in shim code 2020-02-07 22:50:21 -05:00
Trevor Brown
e4ddf560e8 Move function definitions out of with_shim_executable function 2020-02-07 22:32:04 -05:00
Trevor Brown
42182f31c4 Add test for shim exec of path versions 2020-02-07 22:32:04 -05:00
Trevor Brown
e79016add3
Merge pull request #630 from lalloni/default-to-empty-asdf-data-dir
Defaults to empty ASDF_DATA_DIR
2020-02-06 07:15:07 -05:00
Trevor Brown
e4a9ad6e58
Merge pull request #649 from asdf-vm/tb/misc-test-improvements
Misc. Test Improvements
2020-02-05 07:51:42 -05:00
Trevor Brown
1dc939bb52 Simplify asdf_data_dir function 2020-02-05 07:47:02 -05:00
Trevor Brown
6d8d77f51d Unset ASDF_DIR variable before running tests 2020-02-04 11:23:09 -05:00
Trevor Brown
f787b719ac
Merge pull request #640 from asdf-vm/improve-export-shell
Fix asdf shell xx --unset for fish
2020-02-04 08:17:54 -05:00
Trevor Brown
79ffc55f82 Add another test for asdf_data_dir function 2020-01-31 14:03:33 -05:00
Jesse Jackson
3a4342a6be Update examples using subcommands
Replace references to aliases in the form of
`command-subcommand` with `command subcommand`
2020-01-30 15:59:05 -06:00
Trevor Brown
94db44b259
Merge pull request #644 from asdf-vm/tb/fix-hanging-test
Fix hanging 'asdf update is a noop for non-git repos' test
2020-01-30 08:04:45 -05:00
Trevor Brown
84ab5b7753 Fix hanging 'asdf update is a noop for non-git repos' test 2020-01-29 09:58:59 -05:00
Trevor Brown
2a1c7c38aa
Merge pull request #637 from asdf-vm/tb/prefer-open-source
Prefer open source distros over closed source distros in build
2020-01-29 08:07:29 -05:00
Trevor Brown
a6b8996f2a Address shellcheck warnings 2020-01-29 08:04:39 -05:00
Trevor Brown
a1f76f7613
Merge pull request #643 from mikeroll/fix-plugin-add-completion
Fix bash completion for `plugin-add`
2020-01-29 08:01:02 -05:00
Mikhail Bulash
0b169e15b5 Fix bash completion for plugin-add 2020-01-28 12:35:36 +03:00
Daniel Perez
e53de6726f Fix asdf shell xx --unset for fish 2020-01-25 20:42:43 +00:00
Trevor Brown
7d3fb89608 Prefer open source distros over closed source distros in build 2020-01-15 10:28:26 -05:00
Trevor Brown
33a3111dcb
Merge pull request #627 from deiga/fix-test-errors
Fixes tests in master
2020-01-06 09:40:19 -05:00
Trevor Brown
bde7ae5393
Merge pull request #631 from maxnordlund/patch-1
Fix small typo `git` -> `asdf`
2020-01-03 08:59:20 -05:00
Max Nordlund
40600ec903
Fix typo 2020-01-02 23:05:58 +01:00
Trevor Brown
3f7bdabf91
Merge pull request #629 from lalloni/remove-sourced-scripts-shebang
Remove shebang lines of sourced scripts
2020-01-02 11:16:43 -05:00
Pablo Lalloni
95e0f534e6 Defaults to empty ASDF_DATA_DIR
If ASDF_DATA_DIR variable is undefined it will assign an empty value to
it so bash instances running with set -o nounset can run the script
without error.
2019-12-31 09:58:05 -03:00
Pablo Lalloni
5bad5f4214 Remove shebang lines of sourced scripts 2019-12-31 09:48:56 -03:00
Timo Sand
a3bbb0b641
Adds fetching of tags 2019-12-31 09:54:52 +02:00
Timo Sand
09db5d6bfc
Switches to actually use latest instead of first 2019-12-30 23:25:56 +02:00
Timo Sand
340b027b5f
Removes echo overcomplication 2019-12-30 21:03:38 +02:00
Daniel Perez
550f286855
Merge pull request #624 from imbsky/patch-1
Bump checkout action version
2019-12-30 13:33:49 +00:00
BSKY
40dea1e096
Update workflow.yml 2019-12-24 21:16:30 +09:00
Victor Borja
c34b7ec98e
Merge pull request #622 from CodeFoodPixels/clearer-warning-shim-plugin
Fix issue with preset version warning assuming that the shim name and plugin name are the same
2019-12-22 00:38:45 -06:00
Jonathan Mast
069c74f45e
Ignore shim directory for executable lookups
Previously, the shims directory was only excluded for system versions,
which meant that `asdf exec` would fall back to a shim if the install
didn't have the desired binary. If the shims are up to date this isn't a
problem since we check the metadata, but it causes issues if those are
out of sync for whatever reason.

I've checked all the uses of this function and I'm not seeing anywhere
we should need the old behavior.
2019-12-21 15:24:55 -05:00
Jonathan Mast
67e0e50445
Run config tests in BATS_TMPDIR for clean environment
This avoids issues with it picking up config files from parent
directories.
2019-12-21 14:22:32 -05:00
Luke Bonaccorsi
c728018627 Fix issue with preset version warning assuming that the shim name and plugin name are the same 2019-12-20 17:26:00 +00:00
Victor Hugo Borja
6207e42cec Update version to 0.7.6 2019-12-15 23:09:57 -06:00
Victor Hugo Borja
39d3773f57 Release 0.7.6 2019-12-15 23:09:49 -06:00
Victor Borja
ff57001691
Merge pull request #609 from tejanium/clearer-warning
Clarify instructions when <version> of a <shim_name> is missing.
2019-12-13 12:02:16 -06:00
Victor Borja
8826dc7a52
Merge pull request #614 from aocole/patch-1
Update installation for Zsh on macOS Catalina
2019-12-09 22:25:01 -06:00
Andrew Cole
5bb651af58
Update installation for Zsh on macOS Catalina 2019-12-09 11:17:44 -08:00
Victor Borja
608098cd83
Merge pull request #612 from superhawk610/patch-1
docs: update plugin-* usage
2019-12-08 23:58:23 -06:00
Aaron Ross
5ca74a8012
docs: update plugin-* usage 2019-12-08 21:18:09 -05:00