mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-02-22 06:21:11 +08:00

Use add-zsh-hook to add functions to hooks. That way they won't be added again when doing `source ~/.zshrc` multiple times. Co-authored-by: Marc Cornellà <marc.cornella@live.com>
last-working-dir plugin
Keeps track of the last used working directory and automatically jumps into it for new shells, unless:
- The plugin is already loaded.
- The current
$PWD
is not$HOME
.
Adds lwd
function to jump to the last working directory.