zoxide/templates
Douglas Sellers 6d0ba18003 feat: add `z --` to jump to last rested directory
Add a new `z --` command that jumps back to the last directory the user
stayed in for at least 5 seconds. The threshold is configurable via the
`_ZO_REST_THRESHOLD` environment variable (default: 5).

This is implemented entirely in the shell templates with no Rust binary
changes. Each shell hook now tracks dwell time per directory and records
the last "rested" directory in a session-local variable.

Supported across all 9 shells: bash, zsh, fish, posix, powershell,
elvish, nushell, tcsh, and xonsh.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 14:19:16 -08:00
..
bash.txt feat: add `z --` to jump to last rested directory 2026-02-18 14:19:16 -08:00
elvish.txt feat: add `z --` to jump to last rested directory 2026-02-18 14:19:16 -08:00
fish.txt feat: add `z --` to jump to last rested directory 2026-02-18 14:19:16 -08:00
nushell.txt feat: add `z --` to jump to last rested directory 2026-02-18 14:19:16 -08:00
posix.txt feat: add `z --` to jump to last rested directory 2026-02-18 14:19:16 -08:00
powershell.txt feat: add `z --` to jump to last rested directory 2026-02-18 14:19:16 -08:00
tcsh.txt feat: add `z --` to jump to last rested directory 2026-02-18 14:19:16 -08:00
xonsh.txt feat: add `z --` to jump to last rested directory 2026-02-18 14:19:16 -08:00
zsh.txt feat: add `z --` to jump to last rested directory 2026-02-18 14:19:16 -08:00