summaryrefslogtreecommitdiffstats
path: root/shell-completion/setarch
diff options
context:
space:
mode:
authorSami Kerola2013-03-24 18:19:09 +0100
committerSami Kerola2013-04-01 18:41:55 +0200
commitc6f8c3f5cec47bb71b59cdf9a8d8aaf98055caf6 (patch)
tree4334bbff1f33efaec233374ccb8b0a23f935f8cd /shell-completion/setarch
parentbash-completion: schedutils (diff)
downloadkernel-qcow2-util-linux-c6f8c3f5cec47bb71b59cdf9a8d8aaf98055caf6.tar.gz
kernel-qcow2-util-linux-c6f8c3f5cec47bb71b59cdf9a8d8aaf98055caf6.tar.xz
kernel-qcow2-util-linux-c6f8c3f5cec47bb71b59cdf9a8d8aaf98055caf6.zip
bash-completion: sys-utils
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'shell-completion/setarch')
-rw-r--r--shell-completion/setarch42
1 files changed, 42 insertions, 0 deletions
diff --git a/shell-completion/setarch b/shell-completion/setarch
new file mode 100644
index 000000000..b84d399b5
--- /dev/null
+++ b/shell-completion/setarch
@@ -0,0 +1,42 @@
+_setarch_module()
+{
+ local cur OPTS
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ if [ $COMP_CWORD -eq 1 ]; then
+ COMPREPLY=( $(compgen -W "linux32 linux64 ppc32 ppc ppc64
+ ppc64pseries ppc64iseries i386
+ i486 i586 i686 athlon x86_64
+ ia64 parisc32 parisc parisc64
+ s390 s390x sparc sparc32bash
+ sparc32 sparc64 mips32 mips
+ mips64 alpha alphaev5 alphaev56
+ alphaev6 alphaev67" -- $cur) )
+ return 0
+ fi
+ case $cur in
+ -*)
+ OPTS="-v, --verbose
+ -R, --addr-no-randomize
+ -F, --fdpic-funcptrs
+ -Z, --mmap-page-zero
+ -L, --addr-compat-layout
+ -X, --read-implies-exec
+ -B, --32bit
+ -I, --short-inode
+ -S, --whole-seconds
+ -T, --sticky-timeouts
+ -3, --3gb
+ --4gb
+ --uname-2.6
+ -h, --help
+ -V, --version"
+ COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
+ return 0
+ ;;
+ esac
+ compopt -o bashdefault
+ COMPREPLY=( $(compgen -c -- $cur) )
+ return 0
+}
+complete -F _setarch_module setarch