From: Andre Wild Date: Wed, 27 Sep 2017 17:44:46 +0000 (+0200) Subject: lsmem/chmem: add memory zone awareness to bash-completion X-Git-Tag: v2.32-rc1~260 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=afee3f204247fbc8e4cfaa1698f3d98762544dd8;p=thirdparty%2Futil-linux.git lsmem/chmem: add memory zone awareness to bash-completion This patch extends the valid --output values with ZONES for the lsmem bash-completion, and adds the --zone option for the chmem bash-completion. Signed-off-by: Andre Wild Signed-off-by: Gerald Schaefer --- diff --git a/bash-completion/chmem b/bash-completion/chmem index 00b870dbd9..3e3af87aca 100644 --- a/bash-completion/chmem +++ b/bash-completion/chmem @@ -16,6 +16,7 @@ _chmem_module() --disable --blocks --verbose + --zone --help --version " diff --git a/bash-completion/lsmem b/bash-completion/lsmem index 8f7a46ec30..9aa124569d 100644 --- a/bash-completion/lsmem +++ b/bash-completion/lsmem @@ -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' + OUTPUT_ALL='RANGE SIZE STATE REMOVABLE BLOCK NODE ZONES' for WORD in $OUTPUT_ALL; do if ! [[ $prefix == *"$WORD"* ]]; then OUTPUT="$WORD ${OUTPUT:-""}"