[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 14c9f5b23c5766e030043071ed87c5f254c5d782
Ville Skyttä
ville.skytta at iki.fi
Mon Mar 23 21:02:48 UTC 2009
The following commit has been merged in the master branch:
commit 14c9f5b23c5766e030043071ed87c5f254c5d782
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Mon Mar 23 23:01:25 2009 +0200
Add rpmbuild --target completion.
diff --git a/bash_completion b/bash_completion
index c7a25af..8c672a1 100644
--- a/bash_completion
+++ b/bash_completion
@@ -2064,6 +2064,11 @@ _rpm()
'%{requirename}\n' | grep "^$cur" ) )
return 0
;;
+ --target)
+ COMPREPLY=( $( compgen -W "$( command rpm --showrc | sed -ne \
+ 's/^\s*compatible\s\+build\s\+archs\s*:\s*\(.*\)/\1/ p' )" -- $cur ) )
+ return 0
+ ;;
esac
case "${COMP_WORDS[1]}" in
diff --git a/debian/changelog b/debian/changelog
index 9987762..1e97dd9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -146,6 +146,7 @@ bash-completion (1:1.0-1) UNRELEASED; urgency=low
* Apply ps2pdf completion to ps2pdf{12,13,14,wr} too.
* Simplify bash_completion.sh, return earlier in non-applicable environments.
* Remove obsolete --buildarch and --buildos rpm(build) completions.
+ * Add rpmbuild --target completion.
[ Freddy Vulto ]
* Restored `_display()' completion for `display' by removing
--
bash-completion
More information about the Bash-completion-commits
mailing list