ref: refs/heads/master
commit dcf407fc89c50a20294b30b4ca09220a933d5c06
Author: Josef Reidinger
Date: Thu Feb 12 09:27:32 2009 +0100
Bash completion: suggest locks for removal.
---
src/bash-completion.sh | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/bash-completion.sh b/src/bash-completion.sh
index c550820..2b95470 100644
--- a/src/bash-completion.sh
+++ b/src/bash-completion.sh
@@ -70,6 +70,10 @@ _zypper() {
opts2=$(LC_ALL=C $ZYPPER ls | sed -e '1,2 d' -e 's/^[0-9]\+[[:space:]]\+|[[:space:]]*\([^|]\+\)|.*$/\1/' -e 's/[[:space:]]*$//' -e 's/ /\\ /g' -e "s/^\(.*\)$/'\1'/")
opts="${opts} ${opts2}"
;;
+ removelock | rl)
+ opts2=$(LC_ALL=C $ZYPPER ll | sed -e '1,2 d' | cut -d '|' -f 2)
+ opts="${opts} ${opts2}"
+ ;;
esac
COMPREPLY=($(compgen -W "${opts}" -- ${cur}))
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org