-
Notifications
You must be signed in to change notification settings - Fork 13
Bash Completion
I created a simple bash completion script for stratus so that you can tab-complete cluster names and the lists of possible commands. This works currently with the June 10, 2011 stratus, 0.8.13.
To install copy this script into your bash completion directory and name it stratus. See the OS specific instructions below for details.
- create the file "/etc/bash_completion.d/stratus" and copy the above script into that file.
- source the file ". /etc/bash_completion.d/stratus"
On OS X you need to setup bash completion and then add the script by following these instructions:
-
install mac ports: http://www.macports.org/install.php (or HomeBrew: https://github.com/mxcl/homebrew/wiki/Installation)
-
sudo port selfupdate (n/a for HomeBrew)
-
sudo port install bash-completion ("brew install bash-completion" for HomeBrew)
-
And then modify your ~/.profile as directed, e.g., by adding:
if [ -f /opt/local/etc/bash_completion ]; then . /opt/local/etc/bash_completion fi
-
Next, above the other block added to ~/.profile, add:
export USER_BASH_COMPLETION_DIR=~/.bash_completion.d
-
copy the above bash completion script as ~/.bash_completion.d/stratus
-
Finally you need to source the file ". ~/.bash_completion.d/stratus"
Instructions are taken from the following webpages