-
Notifications
You must be signed in to change notification settings - Fork 911
Description
Is your feature request related to a problem? Please describe
On more than one occasion, I've forgotten the -p option when calling asdf set, resulting in multiple (inconsistent) settings for a toolchain within a project.
Describe the proposed solution
I'd love the ability to set an environment variable and/or something in .asdfrc so that my preferred options are always included, unless overridden explicitly on the command-line. In this particular case, I would set the -p as a default option for asdf set but I imagine a more general-purpose solution would allow other people's preferences to be set for other sub-commands.
Describe similar asdf features and why they are not sufficient
Unless I've missed something, there's no way to set such preferences.
Describe other workarounds you've considered
An alias or shell function would make it possible to include the -p option, but would require using a different command when setting a toolchain version to all other asdf operations. A custom wrapper shell function or shell script would also make it possible to add the -p when invoking asdf set but would require reimplementing the asdf command-line parsing in the wrapper to ensure correct operation.