Using pass in command substitution
jman
password-store at city17.xyz
Fri Aug 2 19:53:12 UTC 2024
Conrad Hughes <org_password_store at xrad.org> writes:
> You don't explicitly state what the problem and expectation are, but if
> you want to both assign the password to $token and clip it, you either
> need to run pass twice or use something like the wl-paste trick you
> demonstrate at the end.
Right, all I wanted was being able to copy the password and at the same
time having in on stdout in one go using the "show" command + the --clip
parameter, avoiding the piping dance. The inline documentation says:
pass [show] [--clip[=line-number],-c[line-number]] pass-name
Show existing password and optionally put it on the clipboard.
If put on the clipboard, it will be cleared in 45 seconds.
which led me to think it was possible but apparently it is not. Not a
big deal anyway.
Thanks!
More information about the Password-Store
mailing list