aboutsummaryrefslogtreecommitdiffstats
path: root/bash-completion
diff options
context:
space:
mode:
authorMasatake YAMATO <yamato@redhat.com>2025-03-28 05:41:47 +0900
committerMasatake YAMATO <yamato@redhat.com>2025-03-28 05:42:30 +0900
commit4dd0c74c2fd4a795990195ef67dc314d8e1bebb4 (patch)
tree32cf80216cfa8de7795fb28625ae290d2a61988e /bash-completion
parentb7d5146c8147ea271ea86ffd6a78e05335101f9b (diff)
downloadutil-linux-4dd0c74c2fd4a795990195ef67dc314d8e1bebb4.tar.gz
bash-completion: (setarch) show some options as the 1st arg
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Diffstat (limited to 'bash-completion')
-rw-r--r--bash-completion/setarch9
1 files changed, 8 insertions, 1 deletions
diff --git a/bash-completion/setarch b/bash-completion/setarch
index 4496e97df8..7d7bdb00c5 100644
--- a/bash-completion/setarch
+++ b/bash-completion/setarch
@@ -10,7 +10,14 @@ _setarch_module()
;;
esac
if [ $COMP_CWORD -eq 1 ]; then
- COMPREPLY=( $(compgen -W "$($1 --list)" -- $cur) )
+ OPTS="$($1 --list)"
+ OPTS="$OPTS
+ --list
+ --help
+ --version
+ --show
+ "
+ COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
return 0
fi
case $cur in