Skip to content

Commit 410f40b

Browse files
committed
Place hash -r command on its own line
1 parent 2f6bc85 commit 410f40b

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

Sources/Swiftly/Init.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,13 @@ struct Init: SwiftlyCommand {
248248
// Fish doesn't have path caching, so this might only be needed for bash/zsh
249249
if pathChanged && !quietShellFollowup && !shell.hasSuffix("fish") {
250250
SwiftlyCore.print("""
251-
Your shell caches items on your path for better performance. Swiftly has added items to your path that may not get picked up right away. You can run 'hash -r' to update your shell in place.
251+
Your shell caches items on your path for better performance. Swiftly has added
252+
items to your path that may not get picked up right away. You can update your
253+
shell's environment by running
254+
255+
hash -r
256+
257+
or restarting your shell.
252258
253259
""")
254260
}

Sources/Swiftly/Install.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,11 @@ struct Install: SwiftlyCommand {
113113
if pathChanged && !shell.hasSuffix("fish") {
114114
SwiftlyCore.print("""
115115
NOTE: Swiftly has updated some elements in your path and your shell may not yet be
116-
aware of the changes. You can run 'hash -r' to update your shell in place.
116+
aware of the changes. You can update your shell's environment by running
117+
118+
hash -r
119+
120+
or restarting your shell.
117121
118122
""")
119123
}

Sources/Swiftly/Update.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,11 @@ struct Update: SwiftlyCommand {
138138
if pathChanged {
139139
SwiftlyCore.print("""
140140
NOTE: Swiftly has updated some elements in your path and your shell may not yet be
141-
aware of the changes. You can run 'hash -r' to update your shell.
141+
aware of the changes. You can update your shell's environment by running
142+
143+
hash -r
144+
145+
or restarting your shell.
142146
143147
""")
144148
}

0 commit comments

Comments
 (0)