X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/5365f4cffcb93705d61c9f8df48ed710c93b6049..50420f958c58e36baa6936c794171fbaf316fdbd:/.zsh/aliases/genpw?ds=sidebyside 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"; }