diff --git a/CHANGELOG.md b/CHANGELOG.md index 0987d93..af69282 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/templates/posix.txt b/templates/posix.txt index d0e917c..6d86f08 100644 --- a/templates/posix.txt +++ b/templates/posix.txt @@ -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 }}