.local/share/bash-completion/completions/podman
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 01 Jan 2024 20:53:49 +0200
changeset 1039 78cdb4a057e3
parent 1033 8d13ffe12bd6
permissions -rw-r--r--
Create symlink from ~/.bash_profile for login shell to activate my ~/.bashrc.

eval "$(podman completion bash)"

# Strips .exe for Cygwin with BASHOPTS=completion_strip_exe.
__podman_win_fix() {
  local -a cmd=( $(complete -p podman.exe) )
  [[ $? = 0 ]] || return
  cmd[-1]=podman
  eval "${cmd[@]}"
}
__podman_win_fix
unset -f __podman_win_fix