aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2013-11-14 18:28:54 +0100
committerUlrich Müller <ulm@gentoo.org>2013-11-15 09:01:31 +0100
commit90540744262d70f4e7e56437ce532b35e3382b29 (patch)
tree8fcb5b464ca4f6ed6f21d6af0e7ae6d236261974 /misc
parentAdd maintainer information. (diff)
downloadeselect-90540744262d70f4e7e56437ce532b35e3382b29.tar.gz
eselect-90540744262d70f4e7e56437ce532b35e3382b29.tar.bz2
eselect-90540744262d70f4e7e56437ce532b35e3382b29.zip
New local option --only-names in modules list action.
* modules/modules.eselect (do_list): New local option --only-names will output names of modules only, without their description. This replaces the previous brief output mode behaviour and is mainly intended for bash completion. (describe_list_options): New function, documents --only-names. * bin/eselect.in (es_do_help): Don't force default output mode. * misc/eselect.bashcomp (_eselect): Call "eselect modules list" with --only-names option.
Diffstat (limited to 'misc')
-rw-r--r--misc/eselect.bashcomp4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/eselect.bashcomp b/misc/eselect.bashcomp
index ae5d40d..337ab4b 100644
--- a/misc/eselect.bashcomp
+++ b/misc/eselect.bashcomp
@@ -25,8 +25,8 @@ _eselect() {
done
case $# in
- 0|1) possibles="${options} $(eselect --brief modules list 2>/dev/null)"
- ;;
+ 0|1) possibles="${options} $(eselect modules list --only-names \
+ 2>/dev/null)" ;;
2) possibles=$(eselect --brief "$1" usage 2>/dev/null \
| sed -n -e "${sedcmd2}") ;;
3)