Commit Graph

15 Commits

Author SHA1 Message Date
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