When I log into the Terminal app on OSX my default shell is
echo $HISTFILE points me to
head $(echo $HISTFILE) shows me that the file contains history entries.
If I then type
zsh to switch shell a couple of weird things happen.
Firstly even though my prompt changes (so it looks like I'm in the new shell) my
$SHELL environment variable still points to
$HISTFILE variable is now empty, and there is no such file as
~/.zsh_history. Also, I can't use
Ctrl-E to move through the command line.
What's happening here?