This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/bin/fzfp
Daniel Flanagan 2cbed9492b
Updates
2020-01-28 09:45:04 -06:00

8 lines
237 B
Bash
Executable file

#!/usr/bin/env sh
op="${1:--c}"; shift &>/dev/null
cd ~/.password-store || ( echo "Could not cd to ~/.password-store" && exit 1 )
pp="$(fd gpg | sd ".gpg" "" | fzf --height 40%)"
echo pass $op $pp
pass "$op" "$@" "$pp"
cd - || return 1