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 The completion command generates shell completion scripts for a variety
15 of 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 you are typing the command and press [TAB].
20
21
22 Usually these scripts are automatically installed via the package man‐
23 ager.
24
25
27 --file, -f
28 Write the generated output to file.
29
30
31 --no-desc
32 Do not provide description in the completions.
33
34
36 BASH
37 Make sure you have bash-completion installed on the system.
38
39
40 To load the completion script into the current session run: source
41 <(podman completion bash)
42
43
44 To make it available for all bash sessions run: podman completion bash
45 -f /etc/bash_completion.d/podman
46
47
48 ZSH
49 If shell completion is not already enabled in the environment you will
50 need to enable it. You can execute the following once: echo "autoload
51 -U compinit; compinit" >> ~/.zshrc
52
53
54 To make it available for all zsh sessions run: podman completion zsh -f
55 "${fpath[1]}/_podman"
56
57
58 Once you reload the shell the auto-completion should be working.
59
60
61 FISH
62 To load the completion script into the current session run: podman com‐
63 pletion fish | source
64
65
66 To make it available for all fish sessions run: podman completion fish
67 -f ~/.config/fish/completions/podman.fish
68
69
70 POWERSHELL
71 To load the completion script into the current session run: podman.exe
72 completion powershell | Out-String | Invoke-Expression
73
74
75 To make it available in all powershell sessions that a user has, write
76 the completion output to a file and source that to the user's power‐
77 shell profile. More information about profiles is available with
78 Get-Help about_Profiles.
79
80
82 podman(1)
83
84
85
86 podman-completion(1)()