[Lunar-commits] CVS: moonbase/utils/theedge/profile.d theedge.rc,
1.1, 1.2
Auke Kok
sofar at lunar-linux.org
Mon Apr 19 10:52:07 GMT 2004
Update of /var/cvs/lunar/moonbase/utils/theedge/profile.d
In directory dbguin.lunar-linux.org:/tmp/cvs-serv15572
Modified Files:
theedge.rc
Log Message:
Simplifying and extending the tabcompletion functions with latest additions. speeds things up as well.
Index: theedge.rc
===================================================================
RCS file: /var/cvs/lunar/moonbase/utils/theedge/profile.d/theedge.rc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- theedge.rc 27 Sep 2003 20:34:20 -0000 1.1
+++ theedge.rc 19 Apr 2004 10:52:04 -0000 1.2
@@ -10,7 +10,7 @@
prev=${COMP_WORDS[COMP_CWORD-1]}
if [ $COMP_CWORD -eq 1 ] || [ "${prev:0:1}" = "-" ]; then
- COMPREPLY=( $( compgen -W 'update rebuild' $cur ))
+ COMPREPLY=( $( compgen -W 'prune renew update rebuild optimize fix nofix fixdepends set resurrect install remove hold unhold exile unexile' $cur ))
else
COMPREPLY=( $( compgen -f $cur ))
fi
@@ -26,11 +26,11 @@
prev=${COMP_WORDS[COMP_CWORD-1]}
if [ $COMP_CWORD -eq 1 ] || [ "${prev:0:1}" = "-" ]; then
- COMPREPLY=( $( compgen -W 'DETAILS DEPENDS CONFLICTS BUILD PRE_BUILD POST_BUILD CONFIGURE POST_INSTALL PRE_REMOVE POST_REMOVE what where cd alien from leafs orphans search service website install size installed compile compiler links sources maintainer version sum md5sum export import section moonbase html updatelog activity newer older prune voyeur pam depends tree eert' $cur ))
+ COMPREPLY=( $( compgen -W 'DETAILS DEPENDS CONFLICTS BUILD PRE_BUILD POST_BUILD CONFIGURE POST_INSTALL PRE_REMOVE POST_REMOVE what where cd alien from leafs orphans search service website install size installed compile compiler links sources maintainer version sum md5sum export import section moonbase html updatelog activity newer older prune voyeur pam depends tree eert stree leert' $cur ))
elif [ $COMP_CWORD -eq 2 -a $prev = "from" ]; then
COMPREPLY=( $(compgen -f "$cur") )
elif [ $COMP_CWORD -eq 2 ]; then
- COMPREPLY=( $( compgen -W "`cd /var/lib/lunar/moonbase ; echo */* | sed 's/[a-zA-Z0-9\-]*\///g'`" $cur ))
+ COMPREPLY=( $( compgen -W "`cat /var/state/lunar/module.index | cut -d: -f1`" $cur ))
fi
return 0
}
@@ -40,7 +40,7 @@
{
local cur
cur=${COMP_WORDS[COMP_CWORD]}
- COMPREPLY=( $( compgen -W "`cd /var/lib/lunar/moonbase ; echo */* | sed 's/[a-zA-Z0-9\-]*\///g'`" $cur ))
+ COMPREPLY=( $( compgen -W "`cat /var/state/lunar/module.index | cut -d: -f1`" $cur ))
}
complete -F _modules lin lget
@@ -48,7 +48,7 @@
{
local cur
cur=${COMP_WORDS[COMP_CWORD]}
- COMPREPLY=( $( compgen -W "`lvu installed | cut -d : -f 1-1`" $cur ))
+ COMPREPLY=( $( compgen -W "`cat /var/state/lunar/packages | cut -d: -f1`" $cur ))
}
complete -F _modules_installed lrm
More information about the Lunar-commits
mailing list