--- a/bash-completion.sh Sun Jan 19 18:41:32 2020 +0100
+++ b/bash-completion.sh Mon Jan 20 12:39:22 2020 +0100
@@ -54,6 +54,7 @@
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" == "--parallel" && "x$w0" == "x" ]]; then COMPREPLY=($(nproc --all))
elif [[ "$w1" == "--file" ]]; then COMPREPLY=($(compgen -W "${FILE_FIELDS[*]}" -- "$w0"))
elif [[ "$w1" == "--xattr" ]]; then COMPREPLY=($(compgen -W "${XATTR_FIELDS[*]}" -- "$w0"))
elif [[ "$w1" == "--streamlet" ]]; then COMPREPLY=($(while read c; do PATH="$RELPIPE_IN_FILESYSTEM_STREAMLET_PATH" type -P "$c" &>/dev/null && echo "$c"; done < <(PATH="$RELPIPE_IN_FILESYSTEM_STREAMLET_PATH" compgen -A command -- "$w0")))
@@ -65,6 +66,7 @@
"--streamlet"
"--as"
"--option"
+ "--parallel"
)
COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0"))
fi