- allow '@' in the release of RPM packages for rpm completion
This commit is contained in:
parent
f0adf7b79f
commit
b0557f3bd1
@ -1,6 +1,6 @@
|
||||
# bash_completion - some programmable completion functions for bash 2.05a
|
||||
#
|
||||
# $Id: bash_completion,v 1.385 2002/07/22 20:08:53 ianmacd Exp $
|
||||
# $Id: bash_completion,v 1.386 2002/07/23 15:59:15 ianmacd Exp $
|
||||
#
|
||||
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||
#
|
||||
@ -1149,11 +1149,11 @@ rpm_installed_packages()
|
||||
/var/log/rpmpkgs -nt /var/lib/rpm/Packages ]; then
|
||||
# using RHL 7.2 - this is quicker than querying the DB
|
||||
COMPREPLY=( $( sed -ne \
|
||||
's|^\('$cur'.*\)-[0-9a-zA-Z._]\+-[0-9a-z.]\+.*\.rpm$|\1|p' \
|
||||
's|^\('$cur'.*\)-[0-9a-zA-Z._]\+-[0-9a-z.@]\+.*\.rpm$|\1|p' \
|
||||
/var/log/rpmpkgs ) )
|
||||
else
|
||||
COMPREPLY=( $( rpm -qa | sed -ne \
|
||||
's|^\('$cur'.*\)-[0-9a-zA-Z._]\+-[0-9a-z.]\+$|\1|p' ) )
|
||||
's|^\('$cur'.*\)-[0-9a-zA-Z._]\+-[0-9a-z.@]\+$|\1|p' ) )
|
||||
fi
|
||||
}
|
||||
|
||||
@ -1643,7 +1643,7 @@ _user_at_host() {
|
||||
|
||||
return 0
|
||||
}
|
||||
complete -F _user_at_host $nospace talk finger
|
||||
shopt -u hostcomplete && complete -F _user_at_host $nospace talk finger
|
||||
|
||||
# This function performs host completion based on ssh's known_hosts files,
|
||||
# defaulting to standard host completion if they don't exist.
|
||||
|
Loading…
x
Reference in New Issue
Block a user