]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsmem,chmem: add configure/deconfigure bash completion options
authorSumanth Korikkar <sumanthk@linux.ibm.com>
Thu, 16 Oct 2025 15:38:06 +0000 (17:38 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 7 Nov 2025 09:25:59 +0000 (10:25 +0100)
Add bash completion for configure/deconfigure options in chmem and lsmem.

Signed-off-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
bash-completion/chmem
bash-completion/lsmem

index 3e3af87acaa55304a8fb08e6e91c2b10244b4632..f10646677e12f9b5253fd24231a31892e3a6e620 100644 (file)
@@ -14,6 +14,9 @@ _chmem_module()
                        OPTS="
                                --enable
                                --disable
+                               --configure
+                               --deconfigure
+                               --memmap-on-memory
                                --blocks
                                --verbose
                                --zone
index 7d6e8424785195f93023e8c4dd7465eb4919505d..185a15fd2fbaa817877fecffccdd2e82bb23254c 100644 (file)
@@ -9,7 +9,7 @@ _lsmem_module()
                        local prefix realcur OUTPUT_ALL OUTPUT
                        realcur="${cur##*,}"
                        prefix="${cur%$realcur}"
-                       OUTPUT_ALL='RANGE SIZE STATE REMOVABLE BLOCK NODE ZONES'
+                       OUTPUT_ALL='RANGE SIZE STATE REMOVABLE BLOCK NODE ZONES CONFIGURED MEMMAP-ON-MEMORY'
                        for WORD in $OUTPUT_ALL; do
                                if ! [[ $prefix == *"$WORD"* ]]; then
                                        OUTPUT="$WORD ${OUTPUT:-""}"