openshift-evangelists / oc-cluster-wrapper

oc cluster up bash wrapper
Apache License 2.0
144 stars 72 forks source link

bash completion #17

Closed bjartek closed 8 years ago

bjartek commented 8 years ago

Add bash completions so that it is easier to use the tool.

I can look into this if you want me to.

jorgemoralespou commented 8 years ago

@bjartek Can you add completions to the base script and not as a separate file, so that it can be added with:

oc-cluster completion bash

Similar to this: http://kubernetes.io/docs/user-guide/kubectl/kubectl_completion/

Then it will be easier to maintain.

Thanks.

bjartek commented 8 years ago

./oc-cluster completion bash | sudo tee /usr/local/etc/bash_completion.d/oc-cluster works on my mac now

I needed to install bash completions from homebrew as well.

(I mainly use zsh these days so somebody mainly using bash should test this out)

I have no written that many zsh completions but i will give it a shot if I have time.