Difference between revisions of "Source (shell built-in)"

From wikieduonline
Jump to navigation Jump to search
Line 5: Line 5:
 
  echo '[[ $commands[kubectl] ]] && source <(kubectl completion zsh)' >> [[~/.zshrc]] # add autocomplete permanently to your zsh shell
 
  echo '[[ $commands[kubectl] ]] && source <(kubectl completion zsh)' >> [[~/.zshrc]] # add autocomplete permanently to your zsh shell
 
  <ref>https://kubernetes.io/docs/reference/kubectl/cheatsheet/</ref>
 
  <ref>https://kubernetes.io/docs/reference/kubectl/cheatsheet/</ref>
 
  
 
== Related ==
 
== Related ==
 +
* [[Include]]
 
* [[source (Bash build-in)]]
 
* [[source (Bash build-in)]]
  
 
[[Category:Shell]]
 
[[Category:Shell]]

Revision as of 06:33, 2 February 2023


source <(kubectl completion zsh)  # setup autocomplete in zsh into the current shell
echo '[[ $commands[kubectl] ]] && source <(kubectl completion zsh)' >> ~/.zshrc # add autocomplete permanently to your zsh shell
[1]

Related

  • https://kubernetes.io/docs/reference/kubectl/cheatsheet/
  • Advertising: