Added workaround for Cygwin, npm authors explicitly forbids it:
npm/lib/commands/completion.js
if (isWindowsShell) {
const msg = 'npm completion supported only in MINGW / Git bash on Windows'
throw Object.assign(new Error(msg), {
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