aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorAaron Walker <ka0ttic@gentoo.org>2005-06-18 12:08:02 +0000
committerAaron Walker <ka0ttic@gentoo.org>2005-06-18 12:08:02 +0000
commit2bd14992d8ad638c3c050041d55138990f236b3f (patch)
tree5abc7d482b6e311822a600b0d54c8ba8c1d59e72 /misc
parentUpdated usage info with global options; Added OPTIONS section where global op... (diff)
downloadeselect-2bd14992d8ad638c3c050041d55138990f236b3f.tar.gz
eselect-2bd14992d8ad638c3c050041d55138990f236b3f.tar.bz2
eselect-2bd14992d8ad638c3c050041d55138990f236b3f.zip
Added html target to generate HTML for TODO and README in addition to those in doc/.
svn path=/trunk/; revision=145
Diffstat (limited to 'misc')
-rw-r--r--misc/eselect.bashcomp8
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/eselect.bashcomp b/misc/eselect.bashcomp
index 82730d3..db19d2e 100644
--- a/misc/eselect.bashcomp
+++ b/misc/eselect.bashcomp
@@ -6,22 +6,22 @@
# Author: Aaron Walker <ka0ttic@gentoo.org>
_eselect() {
- local cur prev preprev sedcmd possibles
+ local cur prev sedcmd possibles
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
sedcmd='sed -n -e s/^[[:space:]]\+.*1m\([^[:space:]][[:alnum:]-]\+\).*[[:space:]]\+.*$/\1/p'
- opts="--no-colour"
if [[ ${COMP_CWORD} -eq 1 ]] || [[ -n "${prev}" && ${prev} == -* ]]
then
- possibles="$(eselect list-modules | ${sedcmd}) ${opts}"
+ possibles="$(eselect help | ${sedcmd})"
elif eselect ${prev} usage &>/dev/null ; then
possibles=$(eselect ${prev} usage | ${sedcmd})
fi
[[ -n "${possibles}" ]] && \
- COMPREPLY=($(compgen -W "${possibles}" -- ${cur}))
+ COMPREPLY=( $(compgen -W "${possibles}" -- ${cur}) )
+
return 0
}
complete -F _eselect eselect