Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions Sources/Swiftly/Init.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"

"""
}
Expand Down