[pass] [PATCH 1/2] only use first line for clipboard

Steffen Vogel post at steffenvogel.de
Fri Jun 19 13:27:54 CEST 2015


---
 contrib/pass.applescript | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/pass.applescript b/contrib/pass.applescript
index 4720fff..1b9a16d 100644
--- a/contrib/pass.applescript
+++ b/contrib/pass.applescript
@@ -45,7 +45,7 @@ end if
 
 try
 	set entity to the text returned of (display dialog nPrompt default answer defPass buttons {"OK"} with title nTitle default button 1)
-	set pw to do shell script "export PATH=" & shellPath & "; pass " & entity
+	set pw to do shell script "export PATH=" & shellPath & "; source ~/.gpg-agent-info; pass " & entity & " | head -n1"
 	
 	set the clipboard to pw
 	
-- 
2.3.0



More information about the Password-Store mailing list