# HG changeset patch # User Oleksandr Gavenko # Date 1702228517 -7200 # Node ID 9cf008356bdf73b8aaa23b3f88a2d1b7f89d6f9d # Parent bfec97f86dc304af4b45168ae8db3c9379fdfa11 Dynamically build completion for podman. diff -r bfec97f86dc3 -r 9cf008356bdf .local/share/bash-completion/completions/podman --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.local/share/bash-completion/completions/podman Sun Dec 10 19:15:17 2023 +0200 @@ -0,0 +1,10 @@ +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 diff -r bfec97f86dc3 -r 9cf008356bdf Makefile --- a/Makefile Mon Dec 04 14:38:39 2023 +0200 +++ b/Makefile Sun Dec 10 19:15:17 2023 +0200 @@ -60,7 +60,7 @@ .inputrc .Xdefaults .xinitrc .xserverrc \ .screenrc .tmux.conf \ .dircolors .colordiffrc \ - .bashrc .env.bash .bash_completion .bash_completion.d .zshrc \ + .bashrc .env.bash .bash_completion .bash_completion.d .local/share/bash-completion/completions .zshrc \ .vimrc .ssh \ .pylintrc .pystartup .tclshrc .guile \ .gradle/init.d/springColorLogging.gradle \