Crates.io | pass-fu |
lib.rs | pass-fu |
version | 1.0.3 |
source | src |
created_at | 2022-12-06 05:45:28.513277 |
updated_at | 2023-03-06 23:02:40.743335 |
description | Rusty wrapper around the legendary pass - Foo Pass! |
homepage | |
repository | https://gitlab.com/BrightOpen/pass-fu |
max_upload_size | |
id | 730873 |
size | 29,561 |
Implemented in vanila pass:
pass show
print the whole file on the outputpass show --qrcode[=N]
shows a neat QR code for the selected or first linepass show --clip[=N]
copy the chosen line number or first line to clipboardThe pass
manager is solid. UI apps are cute. And for efficiency - Pass-Fu.
Pass-Fu is extending the pass manager:
show --output=N
print only the chosen line to the output (zero based)dmenu
, wofi
...)dmenu
, wofi
...)dmenu
, wofi
...)show --type=N
directly type the input (xdotool
, ydotool
,...)Pass-Fu is aiming to overlay the pass manager - let it do what it does well
and improve it where it's lacking. You can alias pass=pass-fu
as pass-fu
tries to be compatible. pass-fu still calls the original and the alias
will preserve autocompletion.
Rustaceans:
cargo install pass-fu
Then make it your default pass interface (in .profile):
alias pass=pass-fu
Or with a symlink to your local bin folder:
ln -s "$(which pass-fu)" ~/bin/pass
Currently, only the pass show
command is extended:
Use pass as normally. If you show a dir or omit the path, dmenu prompt will appear with a list of entries. Then if the file has multiple lines, it will let you chose the line. And if the line is an OTP secret URL, it will also let you generate the token.
Besides the --clip
(-c
) and --qrcode
(-q
) options, there is:
--type
(-t
) to type the secret--output
(-o
) to write to outputAll these take a line number arg, for instance --type=2
but that's not too useful since you have that picker anyway.