Sending the attachment as a second mail. Feeling hipster today.

On Tue, 9 Feb 2016 18:43:10 +0100
Asbjørn Apeland <[email protected]> wrote:

> Hi.
> 
> I was annoyed that the completion for `pass git` did not include the
> whole git completion, for example for `pass git status --<TAB>`.
> It was an easy patch for the ZSH completion, as can be see at eg.
> https://github.com/RichiH/vcsh/blob/master/_vcsh#L138.
> 
> I'd like to request an implementation for BASH's completion system
> from someone competent in that.
> 
> Would you prefer this complete completion over the existing subset of
> git commands?
>From ab75ee044c3f6d04a6eae5dc8a064eb1297c5989 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Asbj=C3=B8rn=20Apeland?= <[email protected]>
Date: Sun, 7 Feb 2016 18:35:21 +0100
Subject: [PATCH] zsh-completion: use upstream git completion

---
 src/completion/pass.zsh-completion | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/src/completion/pass.zsh-completion b/src/completion/pass.zsh-completion
index 27ce15a..481214d 100644
--- a/src/completion/pass.zsh-completion
+++ b/src/completion/pass.zsh-completion
@@ -73,16 +73,7 @@ _pass () {
 					_pass_complete_entries_with_subdirs
 				;;
 			git)
-				local -a subcommands
-				subcommands=(
-					"init:Initialize git repository"
-					"push:Push to remote repository"
-					"pull:Pull from remote repository"
-					"config:Show git config"
-					"log:Show git log"
-					"reflog:Show git reflog"
-				)
-				_describe -t commands 'pass git' subcommands
+				_dispatch git git
 				;;
 			show|*)
 				_pass_cmd_show
-- 
2.5.0

_______________________________________________
Password-Store mailing list
[email protected]
http://lists.zx2c4.com/mailman/listinfo/password-store

Reply via email to