From 745950c3589c4047a5b94b34bc9cf06dff5dc3c7 Mon Sep 17 00:00:00 2001 From: EtoAl Date: Mon, 13 Mar 2023 15:56:22 +0900 Subject: [PATCH] fix: Prepend asdf directories to the PATH in Nushell (#1496) --- asdf.nu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asdf.nu b/asdf.nu index f4711c3c..092fd3be 100644 --- a/asdf.nu +++ b/asdf.nu @@ -7,8 +7,8 @@ def-env configure-asdf [] { 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 != $asdf_bin_dir } | append $asdf_bin_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 } | prepend $asdf_bin_dir ) }