prezto-last-working-dir module
January 28, 2024 ยท View on GitHub
Keeps track of the last used working directory and automatically jumps into it
for new shells, unless the starting directory is not $HOME.
Also adds a lwd function to jump to the last working directory.
Installation
-
Launch Zsh:
zsh -
Clone the repository into the Prezto modules folder:
git clone https://github.com/JoniVanderheijden/prezto-last-working-dir.git "${ZDOTDIR:-$HOME}/.zprezto/modules" -
Add
prezto-last-working-dirto the modules section of {ZDOTDIR:-HOME}/.zpreztorc:
zstyle ':prezto:load' pmodule \
...other modules
'prezto-last-working-dir'