command line env hook

zsh and tcsh do not work yet. bash works.