zoxide/templates
Claude bfcb1b6b4c
zsh: expand leading named directory when CDABLE_VARS is set
`z foo bar` now expands a leading zsh named directory (e.g. `~foo`)
without requiring the `~` prefix, but only when the user has opted in
via `setopt CDABLE_VARS` -- mirroring how `cd` treats its argument under
that option. A pattern guard restricts the expanded token to identifier
names so it is safe to pass through `eval`, which re-parses `~name` so
zsh performs named-directory expansion.

Closes #396.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NLxGrHd3q7cWKJkT9S3HrU
2026-07-16 08:44:58 +00:00
..
bash.txt Fix MSYS2 cygpath pwd substitution (#1260) 2026-07-07 04:39:13 +05:30
elvish.txt fix(elvish): before-chdir should assign to oldpwd upvalue (#818) 2024-05-29 15:06:28 +05:30
fish.txt fish: display and run the selected command in Space-Tab 2026-06-30 11:22:00 +05:30
nushell.txt Nushell: handle symlinked directories 2026-07-13 15:36:47 +05:30
posix.txt Bash/POSIX: check directory existence using cd 2026-07-04 15:51:04 +05:30
powershell.txt pwsh: Use fully qualified names when invoking cmdlets (#1236) 2026-05-12 05:12:30 +05:30
tcsh.txt tcsh: preserve any existing `precmd` alias 2026-06-30 12:09:25 +05:30
xonsh.txt Add support for csh (#1047) 2025-05-06 11:28:54 +05:30
zsh.txt zsh: expand leading named directory when CDABLE_VARS is set 2026-07-16 08:44:58 +00:00