An extension for pass that allows fuzzy
finding in the store ( $PASSWORD_STORE_DIR
).
Tip
requires fzf
to be installed in the system ( how to install fzf ).
curl -fsSL --create-dirs \
--create-file-mode 755 \
--output $PASSWORD_STORE_DIR/.extensions/fzf.bash \
https://github.com/marslo/pass-fzf/raw/master/fzf.bash &&
chmod +x $PASSWORD_STORE_DIR/.extensions/fzf.bash
# temporarily
$ PASSWORD_STORE_ENABLE_EXTENSIONS=true pass fzf
# permanently
$ echo 'export PASSWORD_STORE_ENABLE_EXTENSIONS=true' >> ~/.bashrc
$ pass fzf
$ pass fzf --help
USAGE
$ pass fzf [OPTIONS] [SUB_COMMAND] [QUERY]
OPTIONS
-s only output selected path without run 'pass'
-h, --help show this help message
EXAMPLES
$ pass fzf → pass -c <selected>
$ pass fzf show → pass show <selected>
$ pass fzf github → fzf search with 'github', then pass -c <selected>
$ pass fzf -c → pass -c <selected>
$ pass fzf edit → pass edit <selected>
$ pass fzf -s → just print path
$ pass fzf -s github → just print path (query='github')
NOTE:
• supported pass sub-commands : -c/--clip, show, edit, rm
• if no sub-command is given, the default is -c/--clip (clipboard)
• environment variables that can be set PASSWORD_STORE_DIR, PASSWORD_STORE_CLIP_TIM
$ alias passs='PASSWORD_STORE_ENABLE_EXTENSIONS=true pass fzf'
- bash-colors by @ppo – used for colorized terminal output.
This project is based on ficoos/pass-fzf, originally created by Saggi Mizrahi, and is licensed under the MIT License.