Skip to content

Commit 5451953

Browse files
authored
Update Init.swift
1 parent 61c43b0 commit 5451953

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Sources/Swiftly/Init.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,13 @@ struct Init: SwiftlyCommand {
102102
envFile = Swiftly.currentPlatform.swiftlyHomeDir.appendingPathComponent("env.fish", isDirectory: false)
103103
sourceLine = """
104104
105+
# Added by swiftly
106+
source "\(envFile.path)"
107+
"""
108+
} else if shell.hasSuffix("/nu") {
109+
envFile = Swiftly.currentPlatform.swiftlyHomeDir.appendingPathComponent("env.nu", isDirectory: false)
110+
sourceLine = """
111+
105112
# Added by swiftly
106113
source "\(envFile.path)"
107114
"""
@@ -157,7 +164,7 @@ struct Init: SwiftlyCommand {
157164
end
158165
159166
"""
160-
} else shell.hasSuffix("/nu") {
167+
} else if shell.hasSuffix("/nu") {
161168
env = """
162169
$env.SWIFTLY_HOME_DIR = "\(Swiftly.currentPlatform.swiftlyHomeDir.path)"
163170
$env.SWIFTLY_BIN_DIR = "\(Swiftly.currentPlatform.swiftlyBinDir.path)"

0 commit comments

Comments
 (0)