From 021416102f354fb85993cc7e2d8beb37f5b83cf3 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Mon, 2 Nov 2020 09:04:19 +0100 Subject: [PATCH] Add pw function for pass almost auto completion --- dotfiles/shell/aliases | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dotfiles/shell/aliases b/dotfiles/shell/aliases index b5e00df..910f700 100644 --- a/dotfiles/shell/aliases +++ b/dotfiles/shell/aliases @@ -39,6 +39,11 @@ alias :q=' exit' alias :x=' exit' alias cd..='cd ..' +pw() { + export PASSWORD_STORE_CLIP_TIME=8 + pass -c2 "$1"; sleep 5; pass -c3 "$1"; sleep 5; pass -c "$1" +} + clitip() { curl -s https://raw.githubusercontent.com/jlevy/the-art-of-command-line/master/README.md | sed '/cowsay[.]png/d' | @@ -48,7 +53,7 @@ clitip() { xmlstarlet unesc | fmt -80 | iconv -t US } -GIT_REPOS=(~/SetupCockpit ~/Keepass ~/Lessons/* ~/PersonalScripts ~/RootMe ~/SRC/*) +GIT_REPOS=(~/.password-store ~/SetupCockpit ~/Keepass ~/Lessons/* ~/PersonalScripts ~/RootMe ~/SRC/*) cockpit() { # enable pass-like commands (ex: cockpit git push) local start_dir="$PWD"