1podman-completion(1)        General Commands Manual       podman-completion(1)
2
3
4

NAME

6       podman-completion - Generate shell completion scripts
7
8

SYNOPSIS

10       podman completion [options]   bash | zsh | fish | powershell
11
12

DESCRIPTION

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

OPTIONS

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

Installation

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

SEE ALSO

104       podman(1), zsh(1), fish(1), powershell(1)
105
106
107
108                                                          podman-completion(1)
Impressum