Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(elvish): prepend asdf paths to $PATH (#1174)
* fix(elvish): prepend asdf paths to `$PATH`
* refactor(elvish): minor improvements
  • Loading branch information
cherryblossom000 committed Feb 28, 2022
1 parent e0d27e6 commit 682b7a1
Showing 1 changed file with 4 additions and 5 deletions.
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

0 comments on commit 682b7a1

Please sign in to comment.