Skip to content

Commit 978ee33

Browse files
committed
Merge pull request #42091 from Alchemik
* gh-42091: Improve "Command-line Completion" section Closes gh-42091
2 parents 09a06b9 + 0cd99a7 commit 978ee33

File tree

1 file changed

+3
-3
lines changed
  • spring-boot-project/spring-boot-docs/src/docs/asciidoc/getting-started

1 file changed

+3
-3
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/getting-started/installing.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,15 +167,15 @@ If you are on a Mac and use https://www.macports.org/[MacPorts], you can install
167167
[[getting-started.installing.cli.completion]]
168168
==== Command-line Completion
169169
The Spring Boot CLI includes scripts that provide command completion for the https://en.wikipedia.org/wiki/Bash_%28Unix_shell%29[BASH] and https://en.wikipedia.org/wiki/Z_shell[zsh] shells.
170-
You can `source` the script (also named `spring`) in any shell or put it in your personal or system-wide bash completion initialization.
171-
On a Debian system, the system-wide scripts are in `<installation location>/shell-completion/bash` and all scripts in that directory are executed when a new shell starts.
170+
You can `source` the script named `spring` (`_spring` for zsh) or put it in your personal or system-wide bash completion initialization.
171+
On a Debian system, the system-wide scripts are in `<installation location>/shell-completion/<bash|zsh>` and all scripts in that directory are executed when a new shell starts.
172172
For example, to run the script manually if you have installed by using SDKMAN!, use the following commands:
173173

174174
[source,shell,indent=0,subs="verbatim"]
175175
----
176176
$ . ~/.sdkman/candidates/springboot/current/shell-completion/bash/spring
177177
$ spring <HIT TAB HERE>
178-
grab help jar run test version
178+
encodepassword help init shell version
179179
----
180180

181181
NOTE: If you install the Spring Boot CLI by using Homebrew or MacPorts, the command-line completion scripts are automatically registered with your shell.

0 commit comments

Comments
 (0)