pass edit with non-GUI editor
Liberius Clavus
liberius at autistici.org
Tue Nov 26 10:11:31 CET 2019
Matthias Braun <matthias at bullbytes.com> writes:
> I'd like to open a password entry using NeoVim in a terminal window.
>
> This is my current script:
>
> #!/usr/bin/env bash
>
> shopt -s nullglob globstar
>
> prefix=${PASSWORD_STORE_DIR-~/.password-store}
> password_files=( "$prefix"/**/*.gpg )
>
> # Remove the password store directories from its entries
> password_files=( "${password_files[@]#"$prefix"/}" )
> # Remove the ".gpg" ending
> password_files=( "${password_files[@]%.gpg}" )
>
> password_entry=$(printf '%s\n' "${password_files[@]}" | rofi -dmenu "$@")
>
> [[ -n $password_entry ]] || exit
>
> pass edit "$password_entry"
>
> What I'd like to do is make `pass edit` open a new instance of termite (my terminal emulator) and pass the temporary file containing the password entry to NeoVim.
From what I understand when you select the entry from dmenu you want it
to open a terminal emulator and edit that pass entry. If that's the case
then you should read the manual for termite.
For urxvt and xterm you can do, `urxvt/xterm -e sh -c "pass edit
entry"`. Does this work on termite?
--
Liberius Clavus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20191126/06df7e2b/attachment.asc>
More information about the Password-Store
mailing list