Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alias k='kubectl -n $NS' plus complete_alias is enough. #77

Open
cangyin opened this issue Jul 17, 2023 · 3 comments
Open

alias k='kubectl -n $NS' plus complete_alias is enough. #77

cangyin opened this issue Jul 17, 2023 · 3 comments

Comments

@cangyin
Copy link

cangyin commented Jul 17, 2023

https://github.com/cykerway/complete-alias

@cangyin
Copy link
Author

cangyin commented Jul 17, 2023

like:

$ k  <-- double <TAB>
alpha          api-versions   auth           cluster-info   cordon         debug          diff           exec           get            label          patch          proxy          run            taint          version
annotate       apply          autoscale      completion     cp             delete         drain          explain        help           logs           plugin         replace        scale          top            wait
api-resources  attach         certificate    config         create         describe       edit           expose         kustomize      options        port-forward   rollout        set            uncordon

$ k describe pod zookeeper-    <-- "desc" + <TAB> + double <TAB>
zookeeper-0  zookeeper-1  zookeeper-2

@ahmetb
Copy link
Owner

ahmetb commented Jul 17, 2023

I don't understand what you're proposing here. Can you please explain how this relates to this repo?

@cangyin
Copy link
Author

cangyin commented Jul 18, 2023

I am just suggesting a way to combine the features of command line aliases and bash-completion.

There might be no need to write all these commands as new alias, as the list is too long to be remembered, finally loses the meaning of aliasing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants