Skip to content

Commit

Permalink
password-store: add new patch that fixes pass-otp completion, relbump
Browse files Browse the repository at this point in the history
  • Loading branch information
sighook committed Sep 25, 2024
1 parent bc40f44 commit d57a580
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
1 change: 1 addition & 0 deletions password-store/.md5sum
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
c43716fa62751b7857b8e08421d4ee42 dynamic-load-ext.patch
f350b558110d3150b723d6b08699ccfa gnupg1-support.patch
b5675c1fabe366a2f4254a3b8bcc3b54 passmenu.1
56b918982fd80bedba6590059c332c6d password-store-1.7.4.tar.xz
Expand Down
4 changes: 3 additions & 1 deletion password-store/Pkgfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@

name=password-store
version=1.7.4
release=2
release=3
source="https://git.zx2c4.com/$name/snapshot/$name-$version.tar.xz
passmenu.1
dynamic-load-ext.patch
gnupg1-support.patch
tree-2.0-compat.patch"

Expand All @@ -16,6 +17,7 @@ build() {
export WITH_ZSHCOMP=no # disable zsh completion
export WITH_FISHCOMP=no # disable fish completion

patch -d $name-$version -p1 -i $SRC/dynamic-load-ext.patch
patch -d $name-$version -p1 -i $SRC/gnupg1-support.patch
patch -d $name-$version -p1 -i $SRC/tree-2.0-compat.patch

Expand Down
26 changes: 26 additions & 0 deletions password-store/dynamic-load-ext.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
From 3cd5641eab95714ba65b960a4d74111b95e1486a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= <[email protected]>
Date: Wed, 21 Jun 2023 23:35:00 +0200
Subject: [PATCH] add functionality for dynamic loading completions for modules

this fixes https://github.com/tadfisher/pass-otp/issues/28
---
src/completion/pass.bash-completion | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/src/completion/pass.bash-completion b/src/completion/pass.bash-completion
index 2d23cbf..2648a61 100644
--- a/src/completion/pass.bash-completion
+++ b/src/completion/pass.bash-completion
@@ -83,6 +83,11 @@ _pass_complete_keys () {
_pass()
{
COMPREPLY=()
+ local COMPLETION_DIR=/usr/share/bash-completion/completions
+ for f in ${COMPLETION_DIR}/pass-*
+ do
+ . ${f}
+ done
local cur="${COMP_WORDS[COMP_CWORD]}"
local commands="init ls find grep show insert generate edit rm mv cp git help version ${PASSWORD_STORE_EXTENSION_COMMANDS[*]}"
if [[ $COMP_CWORD -gt 1 ]]; then

0 comments on commit d57a580

Please sign in to comment.