fix HOMEBREW_PREFIX and add history to zsh