README_SHELL_COMPLETION 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. # ossh is an ssh replacement.
  2. Ossh uses a dynamic inventory cache in order to lookup hostnames and translate them
  3. to something meaningful such as an IP address or dns name.
  4. This allows us to treat our servers as cattle and not as pets.
  5. If you have not run the ossh command and it has not laid down
  6. a cache file the completions will not be available.
  7. You can populate the cache by running `ossh --list`. This
  8. will populate the cache file and the completions should
  9. become available.
  10. This zsh script will look at the cached version of your
  11. multi_ec2 results in ~/.ansible/tmp/. It will then parse a few
  12. {host}.{env} out of the json and return them to be completable.
  13. # BASH
  14. In order to setup bash completion, source the following script:
  15. /path/to/repository/openshift-online-ansible/bin/ossh_bash_completion
  16. # ZSH
  17. In order to setup zsh completion, you will need to verify
  18. that the _ossh_zsh_completion script is somewhere in the path
  19. of $fpath.
  20. Once $fpath includes the _ossh_zsh_completion script then you should
  21. run `exec zsh`. This will then allow you to call `ossh host[TAB]`
  22. for a list of completions.