From 50420f958c58e36baa6936c794171fbaf316fdbd Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Mon, 12 Aug 2019 17:36:19 +1200 Subject: [PATCH] inline password generation and editing --- .zsh/aliases/genpw | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zsh/aliases/genpw b/.zsh/aliases/genpw index bf2fba2..4556cb0 100644 --- a/.zsh/aliases/genpw +++ b/.zsh/aliases/genpw @@ -1 +1 @@ -() { diceware -s ${2:-0} | pass insert -e "$1"; pass -c "$1"; } +() { EDITOR="vim -c 'set noshelltemp' -c '0read! diceware -s ${2:-1}' -c 2d -nX" pass edit "$1"; } -- 2.39.2