diff options
author | Andre Wild | 2017-09-27 19:44:46 +0200 |
---|---|---|
committer | Karel Zak | 2017-10-20 12:37:04 +0200 |
commit | afee3f204247fbc8e4cfaa1698f3d98762544dd8 (patch) | |
tree | ded22b93dd62d06d51b4db6d6a8861a58b9844ce /bash-completion | |
parent | tests/lsmem: update lsmem test with ZONES column (diff) | |
download | kernel-qcow2-util-linux-afee3f204247fbc8e4cfaa1698f3d98762544dd8.tar.gz kernel-qcow2-util-linux-afee3f204247fbc8e4cfaa1698f3d98762544dd8.tar.xz kernel-qcow2-util-linux-afee3f204247fbc8e4cfaa1698f3d98762544dd8.zip |
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 <wild@linux.vnet.ibm.com>
Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Diffstat (limited to 'bash-completion')
-rw-r--r-- | bash-completion/chmem | 1 | ||||
-rw-r--r-- | bash-completion/lsmem | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/bash-completion/chmem b/bash-completion/chmem index 00b870dbd..3e3af87ac 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 8f7a46ec3..9aa124569 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:-""}" |