Skip to content

Commit b4c6046

Browse files
committed
docs: Move autocomplete distribution section next to install section
Signed-off-by: Shengjing Zhu <[email protected]>
1 parent 1cc3c7f commit b4c6046

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,16 @@ the autocomplete/ctr file in your `.bashrc`, or manually like:
248248
$ source ./contrib/autocomplete/ctr
249249
```
250250

251+
#### Distribution of `ctr` autocomplete for bash and zsh
252+
253+
For bash, copy the `contrib/autocomplete/ctr` script into
254+
`/etc/bash_completion.d/` and rename it to `ctr`. The `zsh_autocomplete`
255+
file is also available and can be used similarly for zsh users.
256+
257+
Provide documentation to users to `source` this file into their shell if
258+
you don't place the autocomplete file in a location where it is automatically
259+
loaded for the user's shell environment.
260+
251261
### CRI
252262

253263
`cri` is a [containerd](https://containerd.io/) plugin implementation of the Kubernetes [container runtime interface (CRI)](https://github.com/kubernetes/cri-api/blob/master/pkg/apis/runtime/v1alpha2/api.proto). With it, you are able to use containerd as the container runtime for a Kubernetes cluster.
@@ -282,16 +292,6 @@ A Kubernetes incubator project, [cri-tools](https://github.com/kubernetes-sigs/c
282292
* [Configuring `cri` Plugins](./docs/cri/config.md)
283293
* [Configuring containerd](https://github.com/containerd/containerd/blob/master/docs/man/containerd-config.8.md)
284294

285-
#### Distribution of `ctr` autocomplete for bash and zsh
286-
287-
For bash, copy the `contrib/autocomplete/ctr` script into
288-
`/etc/bash_completion.d/` and rename it to `ctr`. The `zsh_autocomplete`
289-
file is also available and can be used similarly for zsh users.
290-
291-
Provide documentation to users to `source` this file into their shell if
292-
you don't place the autocomplete file in a location where it is automatically
293-
loaded for the user's shell environment.
294-
295295
### Communication
296296

297297
For async communication and long running discussions please use issues and pull requests on the github repo.

0 commit comments

Comments
 (0)