[pass] [Feature Request] Add a `--raw` option to `pass ls`

Tobias Girstmair junkgir-passwd at yahoo.de
Wed Nov 9 21:22:41 CET 2016


>TL;DR We don't need `pass ls --raw` because we have `ls -1`


well, `ls -1` doesn't exactly provide a recursive output. this could be done with a convoluted tree statement (see my patch) or this find one (which isn't simpler, and I haven't checked for symlinks or other strange things):


    find ${PASSWORD_STORE_DIR:-$HOME/.password-store} -type f -name '*.gpg'|sed 's|^${PASSWORD_STORE_DIR:-$HOME/.password-store}/||'|sed 's/\.gpg$//'


intuitive, isn't it? ;-)

Another use case is an interactive user, who wants to copy-paste a line of the `pass ls` output into `pass show`. 

-- Tobias


More information about the Password-Store mailing list