X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/5365f4cffcb93705d61c9f8df48ed710c93b6049..7aaadf8b1f5e527029b5bae25ca03942e01a08ab:/.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"; }