fix: Prepend asdf directories to the PATH in Nushell (#1496)

This commit is contained in:
EtoAl 2023-03-13 15:56:22 +09:00 committed by GitHub
parent 8eb11b8977
commit 745950c358
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 )
} }