1. It turns out cd already can switch into the user's last directory, but when it does, it echoes it to stdout first. Added a function that does not do that.
2. Set all PS1 mode settings to set all git PS1 variables, instead of just GIT_PS1_SHOWUPSTREAM