diff --git a/share/functions/__fish_complete_gpg.fish b/share/functions/__fish_complete_gpg.fish index 2c9f8e2c5..5eff5402a 100644 --- a/share/functions/__fish_complete_gpg.fish +++ b/share/functions/__fish_complete_gpg.fish @@ -16,7 +16,7 @@ # impressive. function __fish_complete_gpg -d "Internal function for gpg completion code deduplication" -a __fish_complete_gpg_command - if string match -q 'gpg (GnuPG) 1.*' ($__fish_complete_gpg_command --version) + if string match -q 'gpg (GnuPG) 1.*' ($__fish_complete_gpg_command --version 2>/dev/null) complete -c $__fish_complete_gpg_command -l simple-sk-checksum -d 'Integrity protect secret keys by using a SHA-1 checksum' complete -c $__fish_complete_gpg_command -l no-sig-create-check -d "Do not verify each signature right after creation" complete -c $__fish_complete_gpg_command -l pgp2 -d "Set up all options to be as PGP 2.x compliant as possible"