Skip to content

Commit 61c43b0

Browse files
authored
Update Install.swift
1 parent 5dd28d2 commit 61c43b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Swiftly/Install.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ struct Install: SwiftlyCommand {
109109
try await Swiftly.currentPlatform.getShell()
110110
}
111111

112-
// Fish doesn't cache its path, so this instruction is not necessary.
113-
if pathChanged && !shell.hasSuffix("fish") {
112+
// Fish or Nushell don't seem to cache their `PATH` env var, so this instruction is not necessary.
113+
if pathChanged && !shell.hasSuffix("fish") && !shell.hasSuffix("/nu") {
114114
SwiftlyCore.print("""
115115
NOTE: We have updated some elements in your path and your shell may not yet be
116116
aware of the changes. You can run this command to update your shell.

0 commit comments

Comments
 (0)