]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - bash-completion/zramctl
libmount; fix and improve read+poll mountinfo
[thirdparty/util-linux.git] / bash-completion / zramctl
index 8c7767ce02e27983f3c1fb7fae2b824478044e3d..5274a561ec7b424abdba4bcb16038386fcf0b140 100644 (file)
@@ -6,7 +6,7 @@ _zramctl_module()
        prev="${COMP_WORDS[COMP_CWORD-1]}"
        case $prev in
                '-a'|'--algorithm')
-                       COMPREPLY=( $(compgen -W "lzo lz4" -- $cur) )
+                       COMPREPLY=( $(compgen -W "lzo lz4 lz4hc deflate 842" -- $cur) )
                        return 0
                        ;;
                '-o'|'--output')
@@ -18,7 +18,7 @@ _zramctl_module()
                                MIGRATED MOUNTPOINT"
                        for WORD in $OUTPUT_ALL; do
                                if ! [[ $prefix == *"$WORD"* ]]; then
-                                       OUTPUT="$WORD $OUTPUT"
+                                       OUTPUT="$WORD ${OUTPUT:-""}"
                                fi
                        done
                        compopt -o nospace
@@ -41,6 +41,7 @@ _zramctl_module()
                                --find
                                --noheadings
                                --output
+                               --output-all
                                --raw
                                --reset
                                --size