]> git.madduck.net Git - etc/zsh.git/blobdiff - .zsh/zshrc/80_zle

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:

oldstyle fixes
[etc/zsh.git] / .zsh / zshrc / 80_zle
index daa066d43b257f30f33e6ad2b1755938dcb16e6a..bdcdfd9934a76f4c4d5610eb3d2d03d8eafdc0bb 100644 (file)
@@ -19,4 +19,8 @@ autoload      edit-command-line
 zle -N        edit-command-line
 bindkey '\ee' edit-command-line
 
+_insert_datestamp() { LBUFFER+=${(%):-'%D{%Y.%m.%d}'}:; }
+zle -N insert-datestamp _insert_datestamp
+bindkey '^t' insert-datestamp
+
 # vim:ft=zsh