Matt Woodson 71c0c0c6d3 added initial tower configs 10 years ago
..
zsh_functions 71c0c0c6d3 added initial tower configs 10 years ago
README_SHELL_COMPLETION cedef18d94 Removed comments and cleaned up code. 10 years ago
ansibleutil.py cedef18d94 Removed comments and cleaned up code. 10 years ago
ossh 04582ead28 Removed unneeded debug statement. 10 years ago
ossh_bash_completion fe7d30b762 Renamed ossh.py and added bash completion function 10 years ago
ossh_zsh_completion 55b7f22404 Updated tab completion as well as respecting ssh config files. 10 years ago

README_SHELL_COMPLETION

# ossh is an ssh replacement.


ossh uses a dynamic inventory cache in order to lookup hostnames and translate them
to something meaningful such as an IP address or dns name.

This allows us to treat our servers as cattle and not as pets.

If you have not run the ossh command and it has not laid down
a cache file the completions will not be available.

You can populate the cache by running `ossh --list`. This
will populate the cache file and the completions should
become available.

This script will look at the cached version of your
multi_ec2 results in ~/.ansible/tmp/multi_ec2_inventory.cache.
It will then parse a few {host}.{env} out of the json
and return them to be completable.

# BASH
In order to setup bash completion, source the following script:
/path/to/repository/openshift-online-ansible/bin/ossh_bash_completion

# ZSH
In order to setup zsh completion, you will need to verify
that the _ossh_zsh_completion script is somewhere in the path
of $fpath.

Once $fpath includes the _ossh_zsh_completion script then you should
run `exec zsh`. This will then allow you to call `ossh host[TAB]`
for a list of completions.