From a0acbe28b9309d1a7ca511915120e36f9cab2be7 Mon Sep 17 00:00:00 2001 From: Kenta Kubo <601636+kkebo@users.noreply.github.com> Date: Sat, 21 Feb 2026 21:45:58 +0900 Subject: [PATCH] Simplify `env.fish` --- Sources/Swiftly/Init.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Sources/Swiftly/Init.swift b/Sources/Swiftly/Init.swift index c813d058..d6c83a00 100644 --- a/Sources/Swiftly/Init.swift +++ b/Sources/Swiftly/Init.swift @@ -114,10 +114,7 @@ struct Init: SwiftlyCommand { set -x SWIFTLY_TOOLCHAINS_DIR "\(Swiftly.currentPlatform.swiftlyToolchainsDir(ctx))" # Remove SWIFTLY_BIN_DIR from PATH if present, then prepend it - while set -l index (contains -i "$SWIFTLY_BIN_DIR" $PATH) - set -e PATH[$index] - end - set -x PATH "$SWIFTLY_BIN_DIR" $PATH + fish_add_path -mP "$SWIFTLY_BIN_DIR" """ }