Compare commits

..

No commits in common. "main" and "v0.10.0" have entirely different histories.

6 changed files with 11 additions and 21 deletions

View File

@ -1,4 +1,4 @@
name: cd
name: Continuous Deployment
on:
push:
tags:

View File

@ -7,13 +7,6 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Fixed
- 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.
## [0.10.0] - 2026-07-04
### Added

View File

@ -16,7 +16,7 @@ function __zoxide_pwd() {
{%- let pwd = "\\builtin pwd -L" -%}
{%- endif -%}
{%- if cfg!(windows) %}
\command cygpath -w "$({{ pwd }})"
\command cygpath -w "{{ pwd }}"
{%- else %}
{{ pwd }}
{%- endif %}

View File

@ -101,12 +101,8 @@ function __zoxide_z_complete
# If the last argument is empty, use interactive selection.
set -l query $tokens[2..-1]
set -l result (command zoxide query --exclude (__zoxide_pwd) --interactive -- $query 2>/dev/null)
if test $status -eq 0
builtin commandline --replace -- "{{ cmd.unwrap_or("cd") }} "(string escape -- $result)
builtin commandline --function repaint execute
else
builtin commandline --function repaint
end
and builtin commandline --replace -- "{{ cmd.unwrap_or("cd") }} "(string escape -- $result)
and builtin commandline --function repaint execute
end
end
complete --command __zoxide_z --no-files --arguments '(__zoxide_z_complete)'

View File

@ -57,14 +57,15 @@ export-env {
# Jump to a directory using only keywords.
export def --env --wrapped __zoxide_z [...rest: directory] {
match $rest {
[] => { cd ~ },
[ '-' ] => { cd - },
[ $arg ] if (try { cd $arg; true } catch { false }) => {},
let path = match $rest {
[] => {'~'},
[ '-' ] => {'-'},
[ $arg ] if ($arg | path expand | path type) == 'dir' => {$arg}
_ => {
cd (^zoxide query --exclude $env.PWD -- ...$rest | str trim -r -c "\n")
^zoxide query --exclude $env.PWD -- ...$rest | str trim -r -c "\n"
}
}
cd $path
{%- if echo %}
echo $env.PWD
{%- endif %}

View File

@ -16,7 +16,7 @@ function __zoxide_pwd() {
{%- let pwd = "\\builtin pwd -L" -%}
{%- endif -%}
{%- if cfg!(windows) %}
\command cygpath -w "$({{ pwd }})"
\command cygpath -w "{{ pwd }}"
{%- else %}
{{ pwd }}
{%- endif %}