shellrc: make type -p usage more portable

This avoids an annoying error message on Darwin and should still function
correctly in Linux.
osx: add OS X specific aliases
zsh: add zle-keymap-select widget

Simple command mode indicator ZLE widget for ZSH.