Skip to content

Commit 94d3cba

Browse files
committed
nushell: handle queries that look like args (#761)
1 parent 5b2c922 commit 94d3cba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
### Fixed
1313

1414
- fish: detect infinite loop when using `alias cd=z`.
15-
- fish / PowerShell: handle queries that look like args (e.g. `z -x`).
15+
- fish / Nushell / PowerShell: handle queries that look like args (e.g. `z -x`).
1616

1717
## [0.9.4] - 2024-02-21
1818

Diff for: templates/nushell.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ if (not ($env | default false __zoxide_hooked | get __zoxide_hooked)) {
3939
#
4040

4141
# Jump to a directory using only keywords.
42-
def --env __zoxide_z [...rest:string] {
42+
def --env --wrapped __zoxide_z [...rest:string] {
4343
let arg0 = ($rest | append '~').0
4444
let path = if (($rest | length) <= 1) and ($arg0 == '-' or ($arg0 | path expand | path type) == dir) {
4545
$arg0
@@ -53,7 +53,7 @@ def --env __zoxide_z [...rest:string] {
5353
}
5454

5555
# Jump to a directory using interactive search.
56-
def --env __zoxide_zi [...rest:string] {
56+
def --env --wrapped __zoxide_zi [...rest:string] {
5757
cd $'(zoxide query --interactive -- ...$rest | str trim -r -c "\n")'
5858
{%- if echo %}
5959
echo $env.PWD

0 commit comments

Comments
 (0)