]> git.madduck.net Git - etc/zsh.git/commitdiff

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:

inline password generation and editing
authormartin f. krafft <madduck@madduck.net>
Mon, 12 Aug 2019 05:36:19 +0000 (17:36 +1200)
committermartin f. krafft <madduck@madduck.net>
Mon, 12 Aug 2019 05:36:19 +0000 (17:36 +1200)
.zsh/aliases/genpw

index bf2fba21a4dcada3909c17e2485830f153285e92..4556cb0b2c6ec07047171cb5aff6e56413b9edb0 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 -nX" pass edit "$1"; }