Created
July 18, 2022 12:32
-
-
Save joshbode/c648370f26e623fe9b7ce30b5abbc2e3 to your computer and use it in GitHub Desktop.
Fix multipass Bash completion to work with ZSH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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