mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-11-05 05:51:17 +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
$PWDis not$HOME.
Adds lwd function to jump to the last working directory.