github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/docs/source/markdown/podman-completion.1.md (about) 1 % podman-completion(1) 2 3 ## NAME 4 podman\-completion - Generate shell completion scripts 5 6 ## SYNOPSIS 7 **podman completion** [*options*] *bash*|*zsh*|*fish* 8 9 ## DESCRIPTION 10 The completion command allows you to generate shell completion scripts. Supported shells are **bash**, **zsh** and **fish**. 11 12 These script are used by the shell to provide suggestions and complete commands when you are typing the command and press [TAB]. 13 14 Usually these scripts are automatically installed via the package manager. 15 16 ## OPTIONS 17 #### **--file**, **-f** 18 19 Write the generated output to file. 20 21 #### **--no-desc** 22 23 Do not provide description in the completions. 24 25 ## Installation 26 27 ### BASH 28 Make sure you have `bash-completion` installed on your system. 29 30 To load the completion script into your current session run: 31 `source <(podman completion bash)` 32 33 To make it available in all your bash sessions run: 34 `podman completion bash -f /etc/bash_completion.d/podman` 35 36 37 ### ZSH 38 If shell completion is not already enabled in your environment you will need to enable it. You can execute the following once: 39 `echo "autoload -U compinit; compinit" >> ~/.zshrc` 40 41 To make it available in all your zsh sessions run: 42 `podman completion zsh -f "${fpath[1]}/_podman"` 43 44 Once you reload the shell the autocompletion should be working. 45 46 47 ### FISH 48 To load the completion script into your current session run: 49 `podman completion fish | source` 50 51 To make it available in all your fish sessions run: 52 `podman completion fish -f ~/.config/fish/completions/podman.fish` 53 54 55 ## SEE ALSO 56 [podman(1)](podman.1.md)