Skip to content

Commit 05c001e

Browse files
Merge pull request #75853 from sr1kar99/10265-tab-completion-command
OSDOCS#10265: Updated the command for adding tab completion
2 parents c69603e + 007070a commit 05c001e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/cli-configuring-completion-zsh.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ After you install the OpenShift CLI (`oc`), you can enable tab completion to aut
1919
[source,terminal]
2020
----
2121
$ cat >>~/.zshrc<<EOF
22+
autoload -Uz compinit
23+
compinit
2224
if [ $commands[oc] ]; then
2325
source <(oc completion zsh)
2426
compdef _oc oc

0 commit comments

Comments
 (0)