Skip to content

Commit 007070a

Browse files
committed
OSDOCS#10265: Updated the command for adding tab completion
1 parent 501e2d8 commit 007070a

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)