public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-bashcomp r65 - trunk
@ 2008-05-15 12:26 Tristan Heaven (nyhm)
  0 siblings, 0 replies; only message in thread
From: Tristan Heaven (nyhm) @ 2008-05-15 12:26 UTC (permalink / raw
  To: gentoo-commits

Author: nyhm
Date: 2008-05-15 12:26:03 +0000 (Thu, 15 May 2008)
New Revision: 65

Modified:
   trunk/gentoo
Log:
opengl-update and etcat are long gone

Modified: trunk/gentoo
===================================================================
--- trunk/gentoo	2008-05-13 23:40:03 UTC (rev 64)
+++ trunk/gentoo	2008-05-15 12:26:03 UTC (rev 65)
@@ -1067,25 +1067,6 @@
 }
 
 #
-# opengl-update completion command
-#
-have opengl-update && {
-_openglupdate()
-{
-    local cur
-    COMPREPLY=()
-    cur="${COMP_WORDS[COMP_CWORD]}"
-    if [[ ${#COMP_WORDS[*]} -le 2 ]]; then
-	COMPREPLY=($(compgen -W "$(for i in /usr/lib/opengl/*; do [ -d $i ] && echo ${i##*/}; done)" $cur))
-    else
-        unset COMPREPLY
-    fi
-    return 0
-}
-complete -F _openglupdate opengl-update
-}
-
-#
 # browser-config completion command
 #
 have browser-config && {
@@ -1618,55 +1599,6 @@
 complete -F _webapp_config webapp-config
 }
 
-#
-# etcat completion
-#
-
-have etcat && {
-_etcat()
-{
-    local cur prev opts
-    COMPREPLY=()
-    cur="${COMP_WORDS[COMP_CWORD]}"
-    prev="${COMP_WORDS[COMP_CWORD-1]}"
-    opts="-b belongs -c changes -d depends -f files -s size -u uses -v
-    versions"
-
-    if [[ ${COMP_CWORD} -eq 1 ]] ; then
-        COMPREPLY=($(compgen -W "${opts}" -- ${cur}))
-        return 0
-    fi
-
-    case "${prev}" in
-        -b|belongs)
-            COMPREPLY=($(compgen -f -- ${cur}))
-            ;;
-        -c|changes|-v|versions)
-            _pkgname -A ${cur}
-            ;;
-        -d|depends)
-            # kinda hard to complete on a regex...
-            COMPREPLY=()
-            ;;
-        -f|files|-s|size|-u|uses)
-            _pkgname -I ${cur}
-            ;;
-        *)
-            local x b=0
-            for x in ${COMP_WORDS[@]} ; do
-                [[ ${x} == "-b" || ${x} == "belongs" ]] && b=1
-            done
-
-            if [[ ${b} -eq 1 ]] ; then
-                local portdir=$(_portdir)
-                COMPREPLY=($(compgen -W "$(< ${portdir}/profiles/categories)" -- ${cur}))
-            fi
-            ;;
-    esac
-}
-complete -o filenames -F _etcat etcat
-}
-
 have revdep-rebuild && {
 _revdep_rebuild() {
     local cur prev opts

-- 
gentoo-commits@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-05-15 12:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-15 12:26 [gentoo-commits] gentoo-bashcomp r65 - trunk Tristan Heaven (nyhm)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox