Get rid of files where we don't own the copyright or license is unclear
[zsh-lovers.git] / zsh_people / bruno_bonfils / functions / _auto-apt
diff --git a/zsh_people/bruno_bonfils/functions/_auto-apt b/zsh_people/bruno_bonfils/functions/_auto-apt
deleted file mode 100644 (file)
index 9b26a05..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-#compdef auto-apt
-
-# Bruno Bonfils, <asyd@zshfr.org>
-
-local expl prev ret
-
-prev="$words[CURRENT-1]"
-
-# if there is a command in arguments ?
-if [[ -n $words[(r)(run|update|update-local|merge|del|check|list|search|debuilt|status)] ]] ; then
-
-    # yes, add completion for command arguments and command options
-    if [[ -n $words[(r)(update|update-local|merge)] && "$words[CURRENT]" = -* ]] ; then
-       _wanted option expl 'option' compadd - "-a" && return 0;
-    fi
-
-    if [[ -n $words[(r)(check|list|search)] && "$words[CURRENT]" = -* ]] ; then
-       _wanted option expl 'option' compadd - "-v" "-f" && return 0;
-    fi
-
-    case $prev in
-       "run")
-           _wanted command expl 'command' _files -g '*(/,*)' && return 0 ;;
-       "del")
-           _wanted package expl 'package' _deb_packages avail && return 0 ;;
-       "search")
-           _arguments ':pattern:' && return 0 ;; 
-    esac
-
-else
-
-    # no, add completion for commands or options (and options arguments)
-    compset -P "*,"
-
-    case $prev in 
-       "-a")
-           local distribs
-           distribs=("main" "contrib" "non-free" "non-US" "none")
-           
-           _wanted distribution expl 'distribution' compadd -q -S, $distribs ;;
-       "-p")
-           local hooks
-           hooks=("exec" "open" "access" "stat" "none")
-           _wanted hook expl 'hook' compadd -q -S, $hooks ;;
-       "-D")
-           _wanted file expl 'dbfile' _files ;;
-       "-F")
-           _wanted file expl 'filedb' _files ;;
-       *)
-           
-           local commands options
-           
-           commands=("run" "update" "update-local" "merge" "del" "check" "list" "search" "debuild" "status")
-           options=("-h" "-s" "-y" "-q" "-i" "-X" "-x" "-a" "-p" "-D" "-F" "-L")
-           
-           if [[ "$words[CURRENT]" = -* ]] ; then
-               _wanted option expl 'option' compadd - $options
-           else
-               _wanted command expl 'command' compadd $commands
-           fi
-           ;;
-    esac
-
-    return 0
-fi