bin

git clone git://git.codymlewis.com/bin.git
Log | Files | Refs

commit f5d3f01c027581b729a2377467b5d2a7f51f87fc
parent 8537abab5ac45076f98912fb670f67f7cf490881
Author: Cody Lewis <cody@codymlewis.com>
Date:   Sat,  4 Jul 2020 11:59:31 +1000

Improved get pass formatting

Diffstat:
Mget_pass | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/get_pass b/get_pass @@ -1,8 +1,8 @@ #!/bin/sh -a=$(ls "$HOME/.password-store" | fzf -i --prompt="What website do you want a password for?") +a=$(ls "$HOME/.password-store" | fzf -i --prompt="What website do you want a password for? ") [ $(ls "$HOME/.password-store/$a" | wc -l) = 1 ] && b=$(ls "$HOME/.password-store/$a" | sed 's/\.gpg//') || - b=$(ls "$HOME/.password-store/$a" | sed 's/\.gpg//' | fzf -i --prompt="Which account do you want a password for") + b=$(ls "$HOME/.password-store/$a" | sed 's/\.gpg//' | fzf -i --prompt="Which account do you want a password for? ") (tpm show "$a/$b" | xsel -p) && (echo "$a" | xsel -b) && notify-send "Password for $a/$b copied to clipboard"