41 lines
1.3 KiB
Plaintext
41 lines
1.3 KiB
Plaintext
$OpenBSD: patch-bin_dconf-bash-completion_sh,v 1.1 2011/05/30 15:51:51 ajacoutot Exp $
|
|
|
|
From 8a7c838d9d574dfe16722154ff7e5842cae795e1 Mon Sep 17 00:00:00 2001
|
|
From: Ryan Lortie <desrt@desrt.ca>
|
|
Date: Mon, 09 May 2011 12:42:33 +0000
|
|
Subject: Add 'dconf reset'.
|
|
|
|
--- bin/dconf-bash-completion.sh.orig Thu May 5 14:08:02 2011
|
|
+++ bin/dconf-bash-completion.sh Mon May 30 17:38:45 2011
|
|
@@ -9,19 +9,27 @@ __dconf() {
|
|
|
|
case "${COMP_CWORD}" in
|
|
1)
|
|
- choices=$'help \nread \nlist \nwrite \nupdate \nlock \nunlock \nwatch '
|
|
+ choices=$'help \nread \nlist \nwrite \nreset\n update \nlock \nunlock \nwatch '
|
|
;;
|
|
|
|
2)
|
|
case "${COMP_WORDS[1]}" in
|
|
help)
|
|
- choices=$'help \nread \nlist \nwrite \nupdate \nlock \nunlock \nwatch '
|
|
+ choices=$'help \nread \nlist \nwrite \nreset\n update \nlock \nunlock \nwatch '
|
|
;;
|
|
list)
|
|
choices="$(dconf _complete / "${COMP_WORDS[2]}")"
|
|
;;
|
|
- read|list|write|lock|unlock|watch)
|
|
+ read|list|write|lock|unlock|watch|reset)
|
|
choices="$(dconf _complete '' "${COMP_WORDS[2]}")"
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+
|
|
+ 3)
|
|
+ case "${COMP_WORDS[1]} ${COMP_WORDS[2]}" in
|
|
+ reset\ -f)
|
|
+ choices="$(dconf _complete '' "${COMP_WORDS[3]}")"
|
|
;;
|
|
esac
|
|
;;
|