From aca97614d2924a833ff51cfad2541b280d15b74d Mon Sep 17 00:00:00 2001 From: qibaoguang Date: Sun, 15 Mar 2015 23:05:30 +0800 Subject: [PATCH] Update 10.2.5. Command-line completion.md --- II. Getting started/10.2.5. Command-line completion.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/II. Getting started/10.2.5. Command-line completion.md b/II. Getting started/10.2.5. Command-line completion.md index e69de29..3cf7bb4 100644 --- a/II. Getting started/10.2.5. Command-line completion.md +++ b/II. Getting started/10.2.5. Command-line completion.md @@ -0,0 +1,10 @@ +### 10.2.5. 命令行实现 + +Spring Boot CLI启动脚本为[BASH](http://en.wikipedia.org/wiki/Bash_%28Unix_shell%29)和[zsh](http://en.wikipedia.org/wiki/Zsh) shells提供完整的命令行实现。你可以在任何shell中`source`脚本(名称也是`spring`),或将它放到你个人或系统范围的bash实现初始化中。在一个Debian系统里,系统范围的脚本位于`/shell-completion/bash`下,当一个新的shell启动时该目录下的所有脚本都被执行。想要手动运行该脚本,例如,你已经使用`GVM`进行安装了: +```shell +$ . ~/.gvm/springboot/current/shell-completion/bash/spring +$ spring + grab help jar run test version +``` + +**注**:如果你使用Homebrew或MacPorts安装Spring Boot CLI,命令行实现脚本会自动注册到你的shell。