aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf@disroot.org>2024-02-19 14:34:14 +0100
committerInigoGutierrez <inigogf@disroot.org>2024-02-19 14:34:14 +0100
commit4d56cdfa7c56e48f00813bf112deb0cf2e7bf5f6 (patch)
treea125408c98098eec141a05e4ea25232c3c80420c
parent039a79d51b37f1f0f9dd125ba324e292bb3d32c7 (diff)
downloadscripts-4d56cdfa7c56e48f00813bf112deb0cf2e7bf5f6.tar.gz
scripts-4d56cdfa7c56e48f00813bf112deb0cf2e7bf5f6.zip
Created script to choose and copy a password with fzf.
-rwxr-xr-xpassCopy.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/passCopy.sh b/passCopy.sh
new file mode 100755
index 0000000..4279e9d
--- /dev/null
+++ b/passCopy.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+pass -c "$(tree --noreport -f .password-store |
+ grep -o '[^ ]*.gpg$' |
+ sed 's|^.password-store/||; s|.gpg$||' |
+ fzf)"