- silence some apt-cache complaints in various completions
(patch by Rafael Sepúlveda <drs@gnulinux.org.mx>)
This commit is contained in:
parent
13913a046e
commit
b9a46e32db
@ -1,6 +1,6 @@
|
|||||||
# bash_completion - some programmable completion functions for bash 2.05b
|
# bash_completion - some programmable completion functions for bash 2.05b
|
||||||
#
|
#
|
||||||
# $Id: bash_completion,v 1.423 2002/10/05 08:03:21 ianmacd Exp $
|
# $Id: bash_completion,v 1.424 2002/10/05 08:08:53 ianmacd Exp $
|
||||||
#
|
#
|
||||||
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||||
#
|
#
|
||||||
@ -1441,7 +1441,7 @@ _apt_get()
|
|||||||
if [ -n "$special" ]; then
|
if [ -n "$special" ]; then
|
||||||
case $special in
|
case $special in
|
||||||
@(install|source|build-dep))
|
@(install|source|build-dep))
|
||||||
COMPREPLY=( $( apt-cache pkgnames $cur ) )
|
COMPREPLY=( $( apt-cache pkgnames $cur 2> /dev/null ) )
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
remove)
|
remove)
|
||||||
@ -1518,7 +1518,7 @@ _apt_cache()
|
|||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
show?(pkg)|depends|dotty|policy)
|
show?(pkg)|depends|dotty|policy)
|
||||||
COMPREPLY=( $( apt-cache pkgnames $cur ) )
|
COMPREPLY=( $( apt-cache pkgnames $cur 2>/dev/null) )
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@ -1584,7 +1584,7 @@ _aptitude()
|
|||||||
if [[ -n "$special" ]]; then
|
if [[ -n "$special" ]]; then
|
||||||
case $special in
|
case $special in
|
||||||
@(install|hold|markauto|unmarkauto|dist-upgrade|download))
|
@(install|hold|markauto|unmarkauto|dist-upgrade|download))
|
||||||
COMPREPLY=( $( apt-cache pkgnames $cur ) )
|
COMPREPLY=( $( apt-cache pkgnames $cur 2> /dev/null ) )
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
@(purge|remove))
|
@(purge|remove))
|
||||||
@ -1642,7 +1642,7 @@ _apt_build()
|
|||||||
if [ -n "$special" ]; then
|
if [ -n "$special" ]; then
|
||||||
case $special in
|
case $special in
|
||||||
@(install|source|info))
|
@(install|source|info))
|
||||||
COMPREPLY=( $( apt-cache pkgnames $cur ) )
|
COMPREPLY=( $( apt-cache pkgnames $cur 2> /dev/null ) )
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
remove)
|
remove)
|
||||||
@ -2834,7 +2834,7 @@ _dpkg()
|
|||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
-@(s|p|l|-@(status|print-avail|list)))
|
-@(s|p|l|-@(status|print-avail|list)))
|
||||||
COMPREPLY=( $( apt-cache pkgnames $cur ) )
|
COMPREPLY=( $( apt-cache pkgnames $cur 2>/dev/null ) )
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
-@(S|-search))
|
-@(S|-search))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user