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>
Dirhistory plugin
This plugin adds keyboard shortcuts for navigating directory history and hierarchy.
To use it, add dirhistory
to the plugins array in your zshrc file:
plugins=(... dirhistory)
Keyboard Shortcuts
Shortcut | Description |
---|---|
alt + left | Go to previous directory |
alt + right | Undo alt + left |
alt + up | Move into the parent directory |
alt + down | Move into the first child directory by alphabetical order |