diff options
Diffstat (limited to 'bash/bashrc.d/gpg.bash')
-rw-r--r-- | bash/bashrc.d/gpg.bash | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/bash/bashrc.d/gpg.bash b/bash/bashrc.d/gpg.bash index 28c5b722..62d123ea 100644 --- a/bash/bashrc.d/gpg.bash +++ b/bash/bashrc.d/gpg.bash @@ -8,21 +8,3 @@ gpg() { esac command gpg "$@" } - -# Completion for gpg with long options -_gpg() { - - # Bail if no gpg(1) - hash gpg 2>/dev/null || return 1 - - # Bail if not completing an option - [[ ${COMP_WORDS[COMP_CWORD]} == --* ]] || return 1 - - # Generate completion reply from gpg(1) options - local option - while read -r option ; do - [[ $option == "${COMP_WORDS[COMP_CWORD]}"* ]] || continue - COMPREPLY[${#COMPREPLY[@]}]=$option - done < <(gpg --dump-options 2>/dev/null) -} -complete -F _gpg -o default gpg |