diff options
author | Aaron Walker <ka0ttic@gentoo.org> | 2004-09-11 20:51:07 +0000 |
---|---|---|
committer | Aaron Walker <ka0ttic@gentoo.org> | 2004-09-11 20:51:07 +0000 |
commit | 11b21f2b3ff2878d77dac1e2386b0e747ad9cd4b (patch) | |
tree | dda6c600eeca297b58f9aabaad9f0a4c67ddc90a /media-gfx/scrot/files | |
parent | initial version of mlmmj (diff) | |
download | historical-11b21f2b3ff2878d77dac1e2386b0e747ad9cd4b.tar.gz historical-11b21f2b3ff2878d77dac1e2386b0e747ad9cd4b.tar.bz2 historical-11b21f2b3ff2878d77dac1e2386b0e747ad9cd4b.zip |
Fixed LICENSE declaration, updated metadata info, and added a bash-completion script (please test).
Diffstat (limited to 'media-gfx/scrot/files')
-rw-r--r-- | media-gfx/scrot/files/scrot.bash-completion | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/media-gfx/scrot/files/scrot.bash-completion b/media-gfx/scrot/files/scrot.bash-completion new file mode 100644 index 000000000000..d7e5729cd849 --- /dev/null +++ b/media-gfx/scrot/files/scrot.bash-completion @@ -0,0 +1,40 @@ +# bash-completion script for scrot +# place this in /etc/bash_completion.d + +_scrot() { + local cur prev opts + COMPREPLY=() + cur=${COMP_WORDS[COMP_CWORD]} + prev=${COMP_WORDS[COMP_CWORD-1]} + opts="-h --help -v --version -b --border -c --count -d --delay -e --exec \ + -q --quality -m --multidisp -s --select -t --thumb" + + if [[ "${cur}" == -* ]] || [[ ${COMP_CWORD} -eq 1 ]]; then + COMPREPLY=($(compgen -W "${opts}" -- "${cur}")) + fi + + case "${prev}" in + -e|--exec) + COMPREPLY=($(compgen -A command -- "${cur}")) + ;; + -h|--help) + COMPREPLY=($(compgen -W "${opts/-h --help}" -- "${cur}")) + ;; + -v|--version) + COMPREPLY=($(compgen -W "${opts/-v --version}" -- "${cur}")) + ;; + -b|--border) + COMPREPLY=($(compgen -W "${opts/-b --border}" -- "${cur}")) + ;; + -c|--count) + COMPREPLY=($(compgen -W "${opts/-c --count}" -- "${cur}")) + ;; + -m|--multidisp) + COMPREPLY=($(compgen -W "${opts/-m --multidisp}" -- "${cur}")) + ;; + -s|--select) + COMPREPLY=($(compgen -W "${opts/-s --select}" -- "${cur}")) + ;; + esac +} +complete -F _scrot scrot |