extract functions from iq script which are not iq specific
add zsh history config
save PATH for use later