]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - bash-completion/mount
lscpu: add --bytes
[thirdparty/util-linux.git] / bash-completion / mount
index 9a33913395224663a096766bd3fcab913d103eeb..832947fd73fc65c781db0fc0b6582fa57cdfabe7 100644 (file)
@@ -15,7 +15,7 @@ _mount_module()
                        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
@@ -34,6 +34,20 @@ _mount_module()
                        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
                        ;;
@@ -50,6 +64,9 @@ _mount_module()
                                --show-labels
                                --no-mtab
                                --options
+                               --options-mode
+                               --options-source
+                               --options-source-force
                                --test-opts
                                --read-only
                                --types
@@ -58,6 +75,7 @@ _mount_module()
                                --verbose
                                --version
                                --read-write
+                               --namespace
                                --label
                                --uuid
                                --bind