[pass] Change the default text editor for pass

Uwe Kaminski jukey at ju-key.de
Mon Nov 14 10:51:26 CET 2016


If I use the edit command (eg.: pass edit /foo ) the file is opened
for editing by vi.

However I am using another editor (joe).

There seem to be different ways other tools are dealing with that:

1. Is there a way to detect the default editor used by the user. It
seems git is able to figure out that I am using joe and selected this
as default editor for commits messages.

2. Tools like crontab (entering: crontab -e ) do ask at the first time
I run them what editor to choose. This would be great for pass as well.

3. Is there somewhere a configuration stored for pass? This also would
be a good place to store the command to run the editor.

As a workaround I am using always the commands:

pass show /foo

copying the output to clipboard. Now a 3rd party editor could be used
to modify the text.

pass -m insert command

copying modified text to clipboard and than to editor and save changes.

What do you think regarding this functionality especially if you do
not use vi as default editor?

Cheers, Uwe

More information about the Password-Store mailing list