mirror of
https://github.com/ajeetdsouza/zoxide.git
synced 2026-11-06 20:57:56 -04:00
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:
co-authored by
Ajeet D'Souza
parent
a1b102b5a5
commit
0601783346
@@ -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
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user