1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-18 18:31:59 +00:00
ohmyzsh/plugins/last-working-dir
Jacob Tomaw 1ba0af650a Use safer append to hook function arrays (#8406)
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>
2019-11-19 18:47:12 +01:00
..
last-working-dir.plugin.zsh Use safer append to hook function arrays (#8406) 2019-11-19 18:47:12 +01:00
README.md last-working-dir: add README 2016-09-30 20:11:17 +02:00

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.