feat(elvish)!: remove deprecated syntax for Elvish v0.17.0 #1168
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Some fixes and improvements for the Elvish support.
asdf
with no arguments. Previously, this would happen:set-env ASDF_DIR (brew --prefix asdf)/libexec; set-env ASDF_DATA_DIR ~/.asdf
to therc.elv
for Homebrew (the Elvish script setsASDF_DIR
to~/.asdf
by default andASDF_DATA_DIR
toASDF_DIR
, which is incorrect for Homebrew installations)$XDG_CONFIG_HOME
on Unix and%AppData%
on Windows, so I linked to the docs and used~/.config/elvish/rc.elv
in the installation script. I haven't updated the Chinese docs properly as I don't know Chinese and instead replaced~/.elvish/rc.elv
with~/.config/elvish/rc.elv
without the link to the Elvish docs.These are some more subjective and minor changes as well (please let me know I should undo the commit):
$E:HOME
asdf~
variable instead of creating afn asdf
and explicitly passing arguments (see docs on the~
variable suffix)asdf
function using a rest variableOther Information
Sorry if this PR does too many things at once; I just noticed a few things I could improve with the Elvish support when updating it to work for the latest Elvish version. I'm very happy to split up this PR into smaller ones.