]> git.madduck.net Git - etc/zsh.git/blobdiff - .zsh/aliases/genpw

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

retire old-getpw
[etc/zsh.git] / .zsh / aliases / genpw
index bf2fba21a4dcada3909c17e2485830f153285e92..7b9f99777454ce7252a53ca02d91b09b3308721b 100644 (file)
@@ -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"; }