Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(elvish): prepend asdf paths to $PATH #1174

Merged
merged 2 commits into from Feb 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 4 additions & 5 deletions asdf.elv
@@ -1,9 +1,8 @@

use path
use re
use str
use path

var asdf_dir = $E:HOME'/.asdf'
var asdf_dir = ~'/.asdf'
if (and (has-env ASDF_DIR) (!=s $E:ASDF_DIR '')) {
set asdf_dir = $E:ASDF_DIR
} else {
Expand Down Expand Up @@ -32,7 +31,7 @@ fn asdf {|command @args|
}

fn match {|argz @pats|
var matched = $true;
var matched = $true
if (!= (count $argz) (count $pats)) {
set matched = $false
} else {
Expand Down Expand Up @@ -88,8 +87,8 @@ for path [
] {
if (not (has-value $paths $path)) {
set paths = [
$@paths
$path
$@paths
]
}
}
Expand Down