File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff 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) "
You can’t perform that action at this time.
0 commit comments