mdeuser commented on a change in pull request #2520: Prints bashauto-completion 
install script to STDOUT
URL: 
https://github.com/apache/incubator-openwhisk/pull/2520#discussion_r131194973
 
 

 ##########
 File path: docs/cli.md
 ##########
 @@ -38,6 +38,31 @@ you can run the following command from your `openwhisk` 
directory:
 
 To verify your CLI setup, try [creating and running an 
action](#openwhisk-hello-world-example).
 
+### Configure bash command completion for Openwhisk CLI
+
+For bash command completio to work, bash 4.1 or newer is required. The most 
recent Linux distributions should have the correct version of bash but Mac 
users will most likely have an older version.
+Mac users can check their bash version and update it by running the following 
commands:
+
+```
+bash --version
+brew install bash-completion
+```
+
+To install bash command completion run the following command:
+
+```
+eval "`wsk sdk install bashauto`"
+```
+
+**Note:** Every time a new terminal is opened this command must be ran again 
to enable bash command completion in the new terminal. Alternatively, adding 
the previous command to the `.bashrc` or `.profile` will prevent this.
+
+For those who wish to do a custom installation, the following commands show 
how to output the wsk command completion script to the terminal and how to save 
the command completion script in a separate shell script file to be run later. 
In both cases, you will need to explicitly run the script to install wsk 
command completion support.
 
 Review comment:
   This text does not match the example commands below.  Maybe it should be
   
   ```
   For those who wish to do a custom installation, the following commands show 
how to output the wsk command completion script into a separate shell script 
file to be run later. You will need to explicitly run the script to install wsk 
command completion support.
   ```
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to