1podman-completion(1) General Commands Manual 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
43 source <(podman completion bash)
44
45
46
47 To make it available for all bash sessions run:
48
49 podman completion -f /etc/bash_completion.d/podman bash
50
51
52
53 ZSH
54 Shell completion needs to be already enabled in the environment. The
55 following can be executed:
56
57 echo "autoload -U compinit; compinit" >> ~/.zshrc
58
59
60
61 To make it available for all zsh sessions run:
62
63 podman completion -f "${fpath[1]}/_podman" zsh
64
65
66
67 Once the shell is reloaded the auto-completion works.
68
69
70 FISH
71 To load the completion script into the current session run:
72
73 podman completion fish | source
74
75
76
77 To make it available for all fish sessions run:
78
79 podman completion -f ~/.config/fish/completions/podman.fish fish
80
81
82
83 POWERSHELL
84 To load the completion script into the current session run:
85
86 podman.exe completion powershell | Out-String | Invoke-Expression
87
88
89
90 To make it available in all powershell sessions that a user has, write
91 the completion output to a file and source that to the user's power‐
92 shell profile. More information about profiles is available with Get-
93 Help about_Profiles.
94
95
97 podman(1), zsh(1), fish(1), powershell(1)
98
99
100
101 podman-completion(1)