podman-completion(1)

πŸ“¦
version 6.1.4 Β· 5 versions
, in arch rolling, fedora 43, fedora 44, ubuntu resolute

✨ podman-completion(1) ✨

okay bestie, welcome to the podman-completion manual page πŸ’– this is from the General Commands Manual section of the podman docs, and it's genuinely one of the most underrated little glow-ups you can give your terminal. no cap.


🌸 NAME 🌸

podman-completion β€” Generate shell completion scripts

like, it makes your shell finish your sentences for you. main character energy fr fr.


πŸ¦‹ SYNOPSIS πŸ¦‹

podman completion [options]   bash | zsh | fish | powershell

πŸ’œ DESCRIPTION πŸ’œ

podman completion generates shell completion scripts for a variety of shells. the supported shells are bash, zsh, fish and powershell. that's the whole roster, periodt. πŸ‘‘

these scripts are used by the shell to provide suggestions and complete commands when the command is typed and [TAB] is pressed. so you type half a thing, smash tab, and the shell is like "say less, i got you" ✨

usually these scripts are automatically installed via the package manager, so lowkey you might already have this working and not even know. vibe check your tab key and find out.


πŸŽ€ OPTIONS πŸŽ€

  • --file, -f=file β€” write the generated output to a file. instead of dumping the script into your terminal like a little confetti cannon, it goes straight into file. πŸ“
  • --no-desc β€” do not provide description in the completions. the default is false.

πŸ’… INSTALLATION πŸ’…

🌈 BASH

bash-completion has to be installed on the system. no bash-completion, no magic, sorry bestie 😭

to load the completion script into the current session run:

source <(podman completion bash)

to make it available for all bash sessions run:

podman completion -f /etc/bash_completion.d/podman bash

🧚 ZSH

shell completion needs to be already enabled in the environment. the following can be executed:

echo "autoload -U compinit; compinit" >> ~/.zshrc

to make it available for all zsh sessions run:

podman completion -f "${fpath[1]}/_podman" zsh

once the shell is reloaded the auto-completion works. reload and slay. πŸ”₯

⭐ FISH

to load the completion script into the current session run:

podman completion fish | source

to make it available for all fish sessions run:

podman completion -f ~/.config/fish/completions/podman.fish fish

πŸ‘‘ POWERSHELL

to load the completion script into the current session run:

podman.exe completion powershell | Out-String | Invoke-Expression

to make it available in all powershell sessions that a user has, write the completion output to a file and source that to the user's powershell profile. more information about profiles is available with Get-Help about_Profiles.

ngl the powershell one is a whole journey, but you got this 🫢

πŸ™ˆ SEE ALSO πŸ™ˆ

podman(1), zsh(1), fish(1), powershell(1)


and that's the whole page, bestie πŸ’– this was podman-completion(1) from the General Commands Manual, and yes, the page does sign itself off by saying podman-completion(1) again at the bottom like it's hyping itself up in the mirror. iconic behavior honestly. now go press tab and enjoy the ✨suggestions✨ πŸŒΈπŸ’…

πŸ“¦ where this page comes from