Skip to content

Instantly share code, notes, and snippets.

@joshbode
Created July 18, 2022 12:32
Show Gist options
  • Save joshbode/c648370f26e623fe9b7ce30b5abbc2e3 to your computer and use it in GitHub Desktop.
Save joshbode/c648370f26e623fe9b7ce30b5abbc2e3 to your computer and use it in GitHub Desktop.
Fix multipass Bash completion to work with ZSH
MULTIPASS="/snap/multipass/current/etc/bash_completion.d/snap.multipass"
if [[ -e "${MULTIPASS}" ]]; then
source <(
sed \
-e '/_get_comp_words_by_ref/d' \
-e 's^\$(echo \${BASH_VERSION} | .*)^0^' \
"${MULTIPASS}"
)
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment