diff options
author | Aaron Walker <ka0ttic@gentoo.org> | 2004-11-13 14:43:50 +0000 |
---|---|---|
committer | Aaron Walker <ka0ttic@gentoo.org> | 2004-11-13 14:43:50 +0000 |
commit | d7e14d12933624609b07d55a6052cd11df07847e (patch) | |
tree | 46c51eac164f9dff0b262008fd7191ed9845adb4 /app-misc/devtodo/files | |
parent | initial ebuild. It's just a bunch of firmware files, so I've copied KEYWORDS ... (diff) | |
download | gentoo-2-d7e14d12933624609b07d55a6052cd11df07847e.tar.gz gentoo-2-d7e14d12933624609b07d55a6052cd11df07847e.tar.bz2 gentoo-2-d7e14d12933624609b07d55a6052cd11df07847e.zip |
Clean up completion functions.
Diffstat (limited to 'app-misc/devtodo/files')
-rw-r--r-- | app-misc/devtodo/files/devtodo.bash-completion | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/app-misc/devtodo/files/devtodo.bash-completion b/app-misc/devtodo/files/devtodo.bash-completion index 7170c2205fcc..1eb92e5b07cf 100644 --- a/app-misc/devtodo/files/devtodo.bash-completion +++ b/app-misc/devtodo/files/devtodo.bash-completion @@ -1,5 +1,9 @@ -# bash-completion script for devtodo -# place this in /etc/bash_completion.d +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/devtodo/files/devtodo.bash-completion,v 1.2 2004/11/13 14:43:50 ka0ttic Exp $ + +# devtodo completion +# original author: Aaron Walker <ka0ttic@gentoo.org> _devtodo() { local cur prev @@ -32,8 +36,6 @@ _devtodo() { ;; esac } -complete -F _devtodo devtodo -complete -F _devtodo todo _tda() { local cur prev @@ -43,8 +45,8 @@ _tda() { if [[ "${cur}" == -* ]] || [[ ${COMP_CWORD} -eq 1 ]]; then COMPREPLY=($(compgen -W "-v --verbose -g --graft -p --priority \ - -G --global --global-database --database --mono --help --version" \ - -- "${cur}")) + -G --global --global-database --database --mono --help --version \ + -l --link" -- "${cur}")) fi case "${prev}" in @@ -53,12 +55,11 @@ _tda() { verylow" -- "${cur}")) ;; - --*database) + -l|--link|--*database) COMPREPLY=($(compgen -o filenames -A file -- "${cur}")) ;; esac } -complete -F _tda tda _tde() { local cur prev @@ -83,7 +84,6 @@ _tde() { ;; esac } -complete -F _tde tde _tdr() { local cur prev @@ -102,7 +102,6 @@ _tdr() { ;; esac } -complete -F _tdr tdr _tdd() { local cur prev @@ -121,4 +120,10 @@ _tdd() { ;; esac } + +complete -F _devtodo devtodo +complete -F _devtodo todo +complete -F _tda tda +complete -F _tde tde +complete -F _tdr tdr complete -F _tdd tdd |