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

9 lines
242 B
Plaintext
Raw Normal View History

2020-01-28 09:45:04 -06:00
#!/usr/bin/env sh
2020-04-20 10:38:19 -05:00
op="${1:--c}"; shift >&2 2>/dev/null
cd ~/.password-store || { echo "Could not cd to ~/.password-store"; exit 1; }
2020-01-28 09:45:04 -06:00
pp="$(fd gpg | sd ".gpg" "" | fzf --height 40%)"
2020-04-20 10:38:19 -05:00
echo "pass $op $pp"
2020-01-28 09:45:04 -06:00
pass "$op" "$@" "$pp"
cd - || return 1