Commit Graph

21 Commits

Author SHA1 Message Date
Ben Stoutenburgh
2606a875eb
fix: bash completion for latest command (#1472)
Co-authored-by: James Hegedus <jthegedus@hey.com>
2023-02-20 01:19:18 +11:00
Ville Skyttä
7c802c3fc9
feat(completions): bash improvements (#1329)
* fix(completions): bash `list` and `list-all` version completions
* feat(completions): add bash `help` one
* feat(completions): add bash `which` one
* feat(completions): add bash `plugin-list/-all`, `info` non-completions
2022-10-18 09:54:03 -04: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
Honeypot95
f4a80b53df
fix: consistent system completion (#911) 2021-04-18 13:04:18 +10:00
James Hegedus
8ca2af3316
feat: cmd to print debug information (#787) 2020-08-24 10:55:41 +10:00
James Hegedus
50feef2a77
fix: CI formatting use editorconfig (#751) 2020-06-30 09:16:35 +10:00
Mikhail Bulash
0b169e15b5 Fix bash completion for plugin-add 2020-01-28 12:35:36 +03:00
Pablo Lalloni
5bad5f4214 Remove shebang lines of sourced scripts 2019-12-31 09:48:56 -03:00
Victor Hugo Borja
b8dc5f1604 Run shfmt on bash files 2019-11-29 10:15:38 -06: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
Kenny Parnell
558583e6da
Fix lint error SC1102 2018-01-23 10:21:16 -05:00
Kenny Parnell
05161f2cf9
Update Bash Completions
- Add missing commands to completion
- Auto-completion for `plugin-add`. Only include plugins not included.
- Auto-completion for `update`
2018-01-22 23:46:47 -05:00
Trevor Brown
df66739fe1 Ignore new shellcheck warnings in bash completions function. 2017-12-27 10:45:16 -05:00
Jonathan Knapp
808a8d48b7
Fix many shellcheck issues; ignore a few others 2017-09-04 10:09:47 -04:00
Fernando
1e9166e9bc Merge branch 'master' into which_command 2017-05-15 15:40:42 -03:00
Julian Laubstein
5fbf730c4c Added missing local and global to bash completion 2017-04-25 14:22:40 +02:00
Trevor Brown
ca2bfa285a Add bash completion for the update command. 2017-03-17 21:48:11 -04:00
Fernando Crespo
fb4e263598 Initial support for which command 2017-03-14 10:56:59 -03: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
Kenny Parnell
0ed957b59e Add bash completion 2016-02-29 02:53:43 -05:00