From dd5700bcfdeec2ce0ea76e4b1790d2a7850ac66b Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Mon, 10 Oct 2022 21:10:43 -0400 Subject: [PATCH 1/2] bashrc: Enable password store extensions --- bash/.bashrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bash/.bashrc b/bash/.bashrc index 8b24392..84d6694 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -90,3 +90,6 @@ function sshts() { # Add local to path export PATH="$PATH:~/.local/bin" + +# Password Store +export PASSWORD_STORE_ENABLE_EXTENSIONS=true From 5cb7d1b6f2945c2a081c89b05ad77bc1fd888962 Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Mon, 10 Oct 2022 21:11:18 -0400 Subject: [PATCH 2/2] bashrc: sshunlock: Remove the default prefix "Misc" --- bash/.bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/.bashrc b/bash/.bashrc index 84d6694..1436d63 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -33,7 +33,7 @@ function moshscr() { # This requires a standalone known hosts file function sshunlock() { set -o pipefail - pass show "Misc/$2" | wl-copy + pass show "$2" | wl-copy if [ $? -ne 0 ]; then echo "key not found" return