Preexec and precmd hook functions a la zsh
