Cosmetic tweaks.
This commit is contained in:
parent
2bb6beb8da
commit
e5c2eef34b
@ -10,8 +10,8 @@ _yum_list()
|
|||||||
# Try to strip in between headings like "Available Packages"
|
# Try to strip in between headings like "Available Packages"
|
||||||
# This will obviously only work for English :P
|
# This will obviously only work for English :P
|
||||||
COMPREPLY=( $( yum -d 0 -C list $1 "$cur*" 2>/dev/null | \
|
COMPREPLY=( $( yum -d 0 -C list $1 "$cur*" 2>/dev/null | \
|
||||||
grep -iv '^\(Available\|Installed\|Updated\) Packages' | \
|
sed -ne '/^\(Available\|Installed\|Updated\) /d' \
|
||||||
sed -e 's/[[:space:]].*//' ) )
|
-e 's/[[:space:]].*//p' ) )
|
||||||
else
|
else
|
||||||
# Drop first line (e.g. "Updated Packages")
|
# Drop first line (e.g. "Updated Packages")
|
||||||
COMPREPLY=( $( yum -d 0 -C list $1 "$cur*" 2>/dev/null | \
|
COMPREPLY=( $( yum -d 0 -C list $1 "$cur*" 2>/dev/null | \
|
||||||
@ -25,7 +25,7 @@ _yum_repolist()
|
|||||||
# http://yum.baseurl.org/ticket/83
|
# http://yum.baseurl.org/ticket/83
|
||||||
# Drop first ("repo id repo name") axnd last ("repolist: ...") rows
|
# Drop first ("repo id repo name") axnd last ("repolist: ...") rows
|
||||||
yum --noplugins -C repolist $1 2>/dev/null | \
|
yum --noplugins -C repolist $1 2>/dev/null | \
|
||||||
sed -ne '/^repo\(\s\+id\|list:\)/d' -e 's/\s.*//p'
|
sed -ne '/^repo\(\s\+id\|list:\)/d' -e 's/[[:space:]].*//p'
|
||||||
}
|
}
|
||||||
|
|
||||||
_yum()
|
_yum()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user