Commit Graph

24 Commits

Author SHA1 Message Date
Yuri Pieters
99623d7eac
fix: support asdf shim-versions completions in fish & bash (#1554)
authored-by: Yuri Pieters <yuri.pieters@anaplan.com>
2023-05-31 18:29:50 +10:00
Edwin Kofler
198ced5032
fix: remove leading asterick in Fish completion (#1543) 2023-04-17 02:15:46 +00:00
Edwin Kofler
8919f4009e
fix!: align Fish entrypoint behaviour with other shells (#1524) 2023-03-30 07:27:23 +00:00
Edwin Kofler
3208e2e75a
chore: Add --all completion to asdf latest (#1319)
chore: Add --all completion to `asdf latest`
2022-08-22 09:54:10 -04:00
Daniel Perez
219b9e6db9
Fix fish completions for info command 2020-08-28 01:10:07 +01:00
Daniel Perez
a3ea698bf6
Fix fish completions for info command 2020-08-28 01:04:22 +01:00
James Hegedus
8ca2af3316
feat: cmd to print debug information (#787) 2020-08-24 10:55:41 +10:00
Kevin Lane
62ef77670d
Fix fish completion to say latest returns a stable version 2019-11-22 10:37:53 -08:00
Kevin Lane
36ba38d921
Add asdf latest command to show latest stable version of a tool 2019-11-22 10:37:52 -08:00
James Roeder
ac0cd0f4d0
Fix completion for OSX/Fish
OSX `sed` is not GNU `sed`, and doesn't support the `\s` whitespace character sequence. This results in autocompletion suggestions including leading spaces, e.g.,
```
$ asdf local python \ \ 3.8.0
```

Using the POSIX compliant `[[:space:]]` sequence is more compatible, and removes the unnecessary spaces on OSX.
2019-11-13 12:22:08 -05:00
Daniel Perez
021e843f3f Add fish completions for which command 2019-03-23 21:39:08 +00:00
Daniel Perez
1d43a052fe
Merge pull request #480 from jonmast/add-shell-command
Add "shell" subcommand for setting versions in shell session
2019-03-20 19:02:59 +00:00
Daniel Perez
396e804966 Add update to Fish completions 2019-03-14 21:29:32 +00:00
Jonathan Mast
9116e8453d
Add "shell" subcommand for setting versions in shell session
Add a "shell" command similar to the existing "global" and "local"
commands, which sets the version in an environment variable instead of
writing it to a file. This was inspired by the similar functionality in
rbenv.

It works by adding a wrapper function for the asdf command. It forwards
to a "sh-shell" command that returns the exports as shell code which is
then evaled by the wrapper. This is a little gross, but we need to run
the code in the shell context in order to set variables.

Resolves #378
2019-03-09 13:19:33 -05:00
Robert Liebowitz
fc1b3b9f87 Silence errors during tab completion 2018-11-16 07:25:33 -05:00
Daniel Perez
8ae7be11f7 Fix fish shell completions 2018-08-24 13:25:38 +02:00
Daniel Perez
56b8456920 Fix tab formatting in fish completions 2017-09-27 16:41:49 +09:00
Daniel Perez
6a63299dec Update fish completions 2017-09-27 16:40:50 +09:00
Daniel Perez
ee842285bb Add system completions for fish 2017-03-27 09:00:40 -07:00
crzrcn
8ecfffcf5c Fix fish shell's deprecation warnings when using the complete command
Attempting to tab-complete an asdf command would result in a deprecation warning being printed.

The --authoritative/-A and --unauthoritative/-u flags have been removed from the `complete` command.

Context: https://github.com/fish-shell/fish-shell/pull/3660
2016-12-24 15:42:57 -08:00
Kevin Rockwood
ca1273e7d4 Rename which to current (#79)
* Rename `asdf which` -> `asdf current`

* Output `set by $path` with current command

* Use dummy plugin in current_command test

* Hide "set by" message if derived from legacy file
2016-07-25 00:47:17 +09:00
Daniel Perez
3e31c40020 Make it possible to use fallback versions. 2016-05-04 02:22:48 +09:00
Daniel Perez
784d7e9f34 Add support for local and global commands. 2016-04-25 02:13:09 +09:00
Daniel Perez
3d388ec0a2 Add fish support. 2016-04-18 16:33:14 +09:00