Sometimes its very useful to bind a key to insert a string. Bash uses readline, so I have these two bindings in my ~/.inputrc that I find very useful:
"\C-xp": "/usr/lib/python2.7/site-packages/" "\C-xf": "find /src -maxdepth 5 -type f -name '*.py' | xargs grep -En " I've been messing around with zsh lately, but I can't figure out how to get this behavior. Is there some magic form of bindkey that does this?