1podman-completion(1)() podman-completion(1)()
2
3
4
6 podman-completion - Generate shell completion scripts
7
8
10 podman completion [options] bash | zsh | fish | powershell
11
12
14 podman completion generates shell completion scripts for a variety of
15 shells. Supported shells are bash, zsh, fish and powershell.
16
17
18 These script are used by the shell to provide suggestions and complete
19 commands when the command is typed and [TAB] is pressed.
20
21
22 Usually these scripts are automatically installed via the package man‐
23 ager.
24
25
27 --file, -f=file
28 Write the generated output to a file.
29
30
31 --no-desc
32 Do not provide description in the completions.
33 The default is false.
34
35
37 BASH
38 bash-completion has to be installed on the system.
39
40
41 To load the completion script into the current session run:
42 source <(podman completion bash).
43
44
45 To make it available for all bash sessions run:
46 podman completion -f /etc/bash_completion.d/podman bash.
47
48
49 ZSH
50 Shell completion needs to be already enabled in the environment. The
51 following can be executed:
52 echo "autoload -U compinit; compinit" >> ~/.zshrc
53
54
55 To make it available for all zsh sessions run:
56 podman completion -f "${fpath[1]}/_podman" zsh
57
58
59 Once the shell is reloaded the auto-completion should be working.
60
61
62 FISH
63 To load the completion script into the current session run: podman com‐
64 pletion fish | source
65
66
67 To make it available for all fish sessions run: podman completion -f
68 ~/.config/fish/completions/podman.fish fish
69
70
71 POWERSHELL
72 To load the completion script into the current session run: podman.exe
73 completion powershell | Out-String | Invoke-Expression
74
75
76 To make it available in all powershell sessions that a user has, write
77 the completion output to a file and source that to the user's power‐
78 shell profile. More information about profiles is available with Get-
79 Help about_Profiles.
80
81
83 podman(1), zsh(1), fish(1), powershell(1)
84
85
86
87 podman-completion(1)()