[pass] [PATCH] Allow options in EDITOR variable

Allan Odgaard lists+pass at simplit.com
Thu Jun 12 11:16:53 CEST 2014


This is required by most graphical editors, as the shell command they 
provide needs to be told to wait until the file has been closed.
---
  src/password-store.sh | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git src/password-store.sh src/password-store.sh
index e68384b..8c6c9c5 100755
--- src/password-store.sh
+++ src/password-store.sh
@@ -425,7 +425,7 @@ cmd_edit() {
  		$GPG -d -o "$tmp_file" "${GPG_OPTS[@]}" "$passfile" || exit 1
  		action="Edit"
  	fi
-	"${EDITOR:-vi}" "$tmp_file"
+	${EDITOR:-vi} "$tmp_file"
  	while ! $GPG -e "${GPG_RECIPIENT_ARGS[@]}" -o "$passfile" 
"${GPG_OPTS[@]}" "$tmp_file"; do
  		echo "GPG encryption failed. Retrying."
  		sleep 1
-- 
2.0.0


More information about the Password-Store mailing list