prefix="${cur%$realcur}"
for WORD in $TYPES; do
if ! [[ $prefix == *"$WORD"* ]]; then
- TYPE_COLS="$WORD $TYPE_COLS"
+ TYPE_COLS="$WORD ${TYPE_COLS:-""}"
fi
done
compopt -o nospace
COMPREPLY=( $(compgen -W "$UUIDS" -- $cur) )
return 0
;;
+ '-N'|'--namespace')
+ local NAMESPACE
+ NAMESPACE="$(lsns --type mnt --output PATH --noheadings)"
+ COMPREPLY=( $(compgen -W "$NAMESPACE" -- $cur) )
+ return 0
+ ;;
+ '--options-mode')
+ COMPREPLY=( $(compgen -W "ignore append prepend replace" -- $cur) )
+ return 0
+ ;;
+ '--options-source')
+ COMPREPLY=( $(compgen -W "fstab mtab disable" -- $cur) )
+ return 0
+ ;;
'-h'|'--help'|'-V'|'--version')
return 0
;;
--show-labels
--no-mtab
--options
+ --options-mode
+ --options-source
+ --options-source-force
--test-opts
--read-only
--types
--verbose
--version
--read-write
+ --namespace
--label
--uuid
--bind