`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 |
||
|---|---|---|
| .. | ||
| bash.txt | ||
| elvish.txt | ||
| fish.txt | ||
| nushell.txt | ||
| posix.txt | ||
| powershell.txt | ||
| tcsh.txt | ||
| xonsh.txt | ||
| zsh.txt | ||