diff options
author | 2004-11-21 10:00:20 +0000 | |
---|---|---|
committer | 2004-11-21 10:00:20 +0000 | |
commit | d2c89d9c3bc4b83001e1111702e13aab41240684 (patch) | |
tree | 364eefe0c3c830b73dd8030215d32cb3391ec002 /app-benchmarks/siege/files/siege.bash-completion | |
parent | initscript updates (diff) | |
download | gentoo-2-d2c89d9c3bc4b83001e1111702e13aab41240684.tar.gz gentoo-2-d2c89d9c3bc4b83001e1111702e13aab41240684.tar.bz2 gentoo-2-d2c89d9c3bc4b83001e1111702e13aab41240684.zip |
Added command-line completion for siege.
Diffstat (limited to 'app-benchmarks/siege/files/siege.bash-completion')
-rw-r--r-- | app-benchmarks/siege/files/siege.bash-completion | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/app-benchmarks/siege/files/siege.bash-completion b/app-benchmarks/siege/files/siege.bash-completion new file mode 100644 index 000000000000..f74cc79ecc3f --- /dev/null +++ b/app-benchmarks/siege/files/siege.bash-completion @@ -0,0 +1,25 @@ +# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/siege/files/siege.bash-completion,v 1.1 2004/11/21 10:00:20 ka0ttic Exp $ +# siege completion + +_siege() { + local cur prev opts + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + prev="${COMP_WORDS[COMP_CWORD-1]}" + opts="-V --version -h --help -C --config -v --verbose -g --get \ + -c --concurrent -i --internet -d --delay -b --benchmark -r --reps \ + -t --time -l --log -m --mark -H --header -R --rc -f --file -u --url" + + if [[ "${cur}" == -* ]] || [ ${COMP_CWORD} -eq 1 ]; then + COMPREPLY=($(compgen -W "${opts}" -- ${cur})) + fi + + case "${prev}" in + -R|--rc|-f|--file) + COMPREPLY=($(compgen -o filenames -A file -- ${cur})) + ;; + esac +} +complete -F _siege siege + +# vim: set ft=sh tw=80 ts=4 sw=4 : |