I think you should put something like this in your .bashrc (or equivalent):
alias pass='EDITOR=emacsclient pass'
You will never be able to convince the whole world to adapt their tools
to your setup. ;-)
Cheers,
Tijn
On 26/08/2018 22:57, Amir Yalon wrote:
This bit of information is not relevant to the history of the password.
---
src/password-store.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Hi,
This has been a personal itch for me ever since I switched to using emacsclient
as default editor. Some context behind the desire to apply the patch: in my
workflow, the $EDITOR variable is different for each project I work on, but I
might invoke `pass` from any open session. When later viewing `pass git log`,
being able to tell which session invoked `pass` is irrelevant and distracting.
Thanks for an awesome tool!
Regards,
Amir
diff --git a/src/password-store.sh b/src/password-store.sh
index d89d455..e9b84e5 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -487,7 +487,7 @@ cmd_edit() {
while ! $GPG -e "${GPG_RECIPIENT_ARGS[@]}" -o "$passfile" "${GPG_OPTS[@]}"
"$tmp_file"; do
yesno "GPG encryption failed. Would you like to try again?"
done
- git_add_file "$passfile" "$action password for $path using
${EDITOR:-vi}."
+ git_add_file "$passfile" "$action password for $path using editor."
}
cmd_generate() {
_______________________________________________
Password-Store mailing list
[email protected]
https://lists.zx2c4.com/mailman/listinfo/password-store