mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
fix: Prepend asdf directories to the PATH in Nushell (#1496)
This commit is contained in:
parent
8eb11b8977
commit
745950c358
4
asdf.nu
4
asdf.nu
@ -7,8 +7,8 @@ def-env configure-asdf [] {
|
|||||||
let asdf_bin_dir = ( $env.ASDF_DIR | path join 'bin' )
|
let asdf_bin_dir = ( $env.ASDF_DIR | path join 'bin' )
|
||||||
|
|
||||||
|
|
||||||
let-env PATH = ( $env.PATH | split row (char esep) | where { |p| $p != $shims_dir } | append $shims_dir )
|
let-env PATH = ( $env.PATH | split row (char esep) | where { |p| $p != $shims_dir } | prepend $shims_dir )
|
||||||
let-env PATH = ( $env.PATH | split row (char esep) | where { |p| $p != $asdf_bin_dir } | append $asdf_bin_dir )
|
let-env PATH = ( $env.PATH | split row (char esep) | where { |p| $p != $asdf_bin_dir } | prepend $asdf_bin_dir )
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user