bash-completion/qdbus-qt5.patch
Dr. Werner Fink 6c7553cee8 Accepting request 793893 from home:Vogtinator:branches:shells
- Improve patch to fix lookup of qdbus-qt5 completion, previously
  it was only loaded if qdbus was used first:
  * qdbus-qt5.patch

OBS-URL: https://build.opensuse.org/request/show/793893
OBS-URL: https://build.opensuse.org/package/show/shells/bash-completion?expand=0&rev=111
2020-04-20 11:12:04 +00:00

60 lines
1.8 KiB
Diff

From: Fabian Vogt <fvogt@suse.de>
Subject: Add completion for qdbus-qt5
qdbus is the Qt 4 variant, also complete for the Qt 5 version.
Index: bash-completion-2.10/completions/qdbus
===================================================================
--- bash-completion-2.10.orig/completions/qdbus
+++ bash-completion-2.10/completions/qdbus
@@ -9,6 +9,6 @@ _qdbus()
COMPREPLY=( $(compgen -W '$(command ${words[@]} 2>/dev/null | \
command sed "s/(.*)//")' -- "$cur") )
} &&
-complete -F _qdbus qdbus dcop
+complete -F _qdbus qdbus qdbus-qt5 dcop
# ex: filetype=sh
Index: bash-completion-2.10/completions/Makefile.in
===================================================================
--- bash-completion-2.10.orig/completions/Makefile.in
+++ bash-completion-2.10/completions/Makefile.in
@@ -892,6 +892,7 @@ CLEANFILES = \
pyvenv-3.6 \
pyvenv-3.7 \
pyvenv-3.8 \
+ qdbus-qt5 \
qemu-kvm \
qemu-system-i386 \
qemu-system-x86_64 \
@@ -1324,7 +1325,7 @@ symlinks: $(DATA)
$(ss) pyvenv \
pyvenv-3.4 pyvenv-3.5 pyvenv-3.6 pyvenv-3.7 pyvenv-3.8
$(ss) qdbus \
- dcop
+ dcop qdbus-qt5
$(ss) qemu \
qemu-kvm qemu-system-i386 qemu-system-x86_64
$(ss) quota \
Index: bash-completion-2.10/completions/Makefile.am
===================================================================
--- bash-completion-2.10.orig/completions/Makefile.am
+++ bash-completion-2.10/completions/Makefile.am
@@ -668,6 +668,7 @@ CLEANFILES = \
pyvenv-3.6 \
pyvenv-3.7 \
pyvenv-3.8 \
+ qdbus-qt5 \
qemu-kvm \
qemu-system-i386 \
qemu-system-x86_64 \
@@ -882,7 +883,7 @@ symlinks: $(DATA)
$(ss) pyvenv \
pyvenv-3.4 pyvenv-3.5 pyvenv-3.6 pyvenv-3.7 pyvenv-3.8
$(ss) qdbus \
- dcop
+ dcop qdbus-qt5
$(ss) qemu \
qemu-kvm qemu-system-i386 qemu-system-x86_64
$(ss) quota \