Skip to content

Commit d407eb0

Browse files
committed
Inline hash -r command
1 parent e628c54 commit d407eb0

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

Sources/Swiftly/Init.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,7 @@ struct Init: SwiftlyCommand {
239239
// Fish doesn't have path caching, so this might only be needed for bash/zsh
240240
if pathChanged && !quietShellFollowup && !shell.hasSuffix("fish") {
241241
SwiftlyCore.print("""
242-
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 this command to update your shell to get these items.
243-
244-
hash -r
242+
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.
245243
246244
""")
247245
}

Sources/Swiftly/Install.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,8 @@ struct Install: SwiftlyCommand {
112112
// Fish doesn't cache its path, so this instruction is not necessary.
113113
if pathChanged && !shell.hasSuffix("fish") {
114114
SwiftlyCore.print("""
115-
NOTE: We have updated some elements in your path and your shell may not yet be
116-
aware of the changes. You can run this command to update your shell.
117-
118-
hash -r
115+
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.
119117
120118
""")
121119
}

Sources/Swiftly/Update.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,8 @@ struct Update: SwiftlyCommand {
137137

138138
if pathChanged {
139139
SwiftlyCore.print("""
140-
NOTE: We have updated some elements in your path and your shell may not yet be
141-
aware of the changes. You can run this command to update your shell.
142-
143-
hash -r
140+
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.
144142
145143
""")
146144
}

0 commit comments

Comments
 (0)