From: martin f. krafft Date: Mon, 12 Aug 2019 05:36:19 +0000 (+1200) Subject: inline password generation and editing X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain/50420f958c58e36baa6936c794171fbaf316fdbd?hp=d773ab2dbb23a142960ba9c5709d7387c5c1e2c8 inline password generation and editing --- 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"; }