ref: refs/heads/master
commit 3d899efe9403688a37ed19e3f58f6d0f84a220b8
Author: Josef Reidinger
Date: Wed Feb 11 13:48:43 2009 +0100
Bash completion: allow repo alias completion in renamerepo.
---
src/bash-completion.sh | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/bash-completion.sh b/src/bash-completion.sh
index b53fafe..ae4a472 100644
--- a/src/bash-completion.sh
+++ b/src/bash-completion.sh
@@ -58,7 +58,9 @@ _zypper() {
COMPREPLY=($(compgen -W "${opts}" -- ${cur}))
;;
renamerepo)
- return 0
+ opts=$(LC_ALL=C $ZYPPER help $prev 2>&1 | sed -e "1,/$magic_string/d" -e 's/.*--/--/' -e 's/ .*//')
+ opts="${opts} $(LC_ALL=C $ZYPPER lr | sed -e '1,2 d' -e 's/^[0-9]\+[[:space:]]\+|[[:space:]]*\([^|]\+\)|.*$/\1/' -e 's/[[:space:]]*$//')"
+ COMPREPLY=($(compgen -W "${opts}" -- ${cur}))
;;
modifyrepo)
opts=$(LC_ALL=C $ZYPPER help $prev 2>&1 | sed -e "1,/$magic_string/d" -e 's/.*--/--/' -e 's/ .*//')
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org