X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/5365f4cffcb93705d61c9f8df48ed710c93b6049..b4d04354a46d9574d91b0892187e9e669ff03c21:/.zsh/aliases/genpw diff --git a/.zsh/aliases/genpw b/.zsh/aliases/genpw index bf2fba2..7b9f997 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 -n" pass edit "$1"; }