From ef34d6b72cf06fe47cc6869522ca5ef9081fc112 Mon Sep 17 00:00:00 2001 From: ktyl Date: Sun, 16 Jan 2022 22:55:01 +0000 Subject: [PATCH] add pw manager scripts --- .scripts/bitwarden/bw-get | 3 +++ .scripts/bitwarden/bw-unlock | 3 +++ .scripts/include.sh | 1 + 3 files changed, 7 insertions(+) create mode 100755 .scripts/bitwarden/bw-get create mode 100755 .scripts/bitwarden/bw-unlock diff --git a/.scripts/bitwarden/bw-get b/.scripts/bitwarden/bw-get new file mode 100755 index 0000000..77691a2 --- /dev/null +++ b/.scripts/bitwarden/bw-get @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +bw get password $1 | kitty +kitten clipboard diff --git a/.scripts/bitwarden/bw-unlock b/.scripts/bitwarden/bw-unlock new file mode 100755 index 0000000..011377d --- /dev/null +++ b/.scripts/bitwarden/bw-unlock @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +export BW_SESSION="$(bw unlock --raw)" diff --git a/.scripts/include.sh b/.scripts/include.sh index ebaca07..76d2d88 100644 --- a/.scripts/include.sh +++ b/.scripts/include.sh @@ -9,3 +9,4 @@ export PATH=$PATH:$SCRIPTS/cam export PATH=$PATH:$SCRIPTS/img export PATH=$PATH:$SCRIPTS/screenshot export PATH=$PATH:$SCRIPTS/anime-matrix +export PATH=$PATH:$SCRIPTS/bitwarden