fix(posix): allow z to enter directories starting with a dash (#1346)

Co-authored-by: Ajeet D'Souza <98ajeet@gmail.com>
This commit is contained in:
Steve Jason
2026-10-24 05:16:39 +05:30
committed by GitHub
co-authored by Ajeet D'Souza
parent a1b102b5a5
commit 0601783346
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Import: fetch atuin history in UTC instead of the local timezone.
- Bash/Zsh: fix `z` failing on Cygwin/MSYS2 due to `cygpath` being passed a bad string.
- Nushell: `z` now handles relative paths through symlinked directories.
- POSIX: fix `z` failing to enter directories whose names start with `-`.
## [0.10.0] - 2026-07-04
+1 -1
View File
@@ -34,7 +34,7 @@ __zoxide_pwd() {
# cd + custom logic based on the value of _ZO_ECHO.
__zoxide_cd() {
# shellcheck disable=SC2164
\command cd "$@" {%- if echo %} && __zoxide_pwd {%- endif %}
\command cd -- "$@" {%- if echo %} && __zoxide_pwd {%- endif %}
}
{{ section }}