diff -r 9172bd97ae99 -r 6f15f18d2abf bash-completion.sh --- a/bash-completion.sh Mon Nov 11 14:42:13 2019 +0100 +++ b/bash-completion.sh Sat Jan 11 00:56:51 2020 +0100 @@ -54,29 +54,19 @@ "dublincore.rights" ) - HASH_FIELDS=( - "md5" - "sha1" - "sha256" - "sha512" - ) - - if [[ "$w1" == "--relation" && "x$w0" == "x" ]]; then COMPREPLY=("''") elif [[ "$w1" == "--as" && "x$w0" == "x" ]]; then COMPREPLY=("''") elif [[ "$w1" == "--option" && "x$w0" == "x" ]]; then COMPREPLY=("''") elif [[ "$w2" == "--option" && "x$w0" == "x" ]]; then COMPREPLY=("''") elif [[ "$w1" == "--file" ]]; then COMPREPLY=($(compgen -W "${FILE_FIELDS[*]}" -- "$w0")) elif [[ "$w1" == "--xattr" ]]; then COMPREPLY=($(compgen -W "${XATTR_FIELDS[*]}" -- "$w0")) - elif [[ "$w1" == "--hash" ]]; then COMPREPLY=($(compgen -W "${HASH_FIELDS[*]}" -- "$w0")) - elif [[ "$w1" == "--script" ]]; then COMPREPLY=($(compgen -W "$(_relpipe_in_filesystem_scripts)" -- "$w0")) + elif [[ "$w1" == "--exec" ]]; then COMPREPLY=($(compgen -W "$(_relpipe_in_filesystem_scripts)" -- "$w0")) else OPTIONS=( "--relation" "--file" "--xattr" - "--hash" - "--script" + "--exec" "--as" "--option" )