Keeps track of the last used working directory and automatically jumps into it for new shells, unless:
$PWD
is not $HOME
.Also adds lwd
function to jump to the last working directory.
To use it, add last-working-dir
to the plugins array in your zshrc file:
plugins=(... last-working-dir)