From ec7e104363beb8f9d25d87b111ed3f4ce46a0969 Mon Sep 17 00:00:00 2001 From: hackers267 Date: Thu, 19 Oct 2023 22:52:48 +0800 Subject: [PATCH 1/4] Update nushell.txt to fit nushell Change the `def-env` to `def --env` to fit the nushell v8.8, because the `def-env` is deprecated and be removed in v8.8 --- templates/nushell.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/nushell.txt b/templates/nushell.txt index c4894da0..fc463f33 100644 --- a/templates/nushell.txt +++ b/templates/nushell.txt @@ -39,7 +39,7 @@ if (not ($env | default false __zoxide_hooked | get __zoxide_hooked)) { # # Jump to a directory using only keywords. -def-env __zoxide_z [...rest:string] { +def --env __zoxide_z [...rest:string] { let arg0 = ($rest | append '~').0 let path = if (($rest | length) <= 1) and ($arg0 == '-' or ($arg0 | path expand | path type) == dir) { $arg0 @@ -53,7 +53,7 @@ def-env __zoxide_z [...rest:string] { } # Jump to a directory using interactive search. -def-env __zoxide_zi [...rest:string] { +def --env __zoxide_zi [...rest:string] { cd $'(zoxide query --interactive -- $rest | str trim -r -c "\n")' {%- if echo %} echo $env.PWD From f03020c53fc74018c72fae08cda6819b043c9c3e Mon Sep 17 00:00:00 2001 From: hackers267 Date: Fri, 20 Oct 2023 10:57:32 +0800 Subject: [PATCH 2/4] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8600ef15..9bee90fe 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,8 @@
Warp
- Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster. + Warp is a modern, Rust-based terminal with AI built in so you + and your team can build great software, faster.
Visit warp.dev to learn more.
From 955126731e06ab541744b467d61d048191628494 Mon Sep 17 00:00:00 2001 From: hackers267 Date: Fri, 20 Oct 2023 11:18:36 +0800 Subject: [PATCH 3/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9bee90fe..39076ab5 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@
Warp
- Warp is a modern, Rust-based terminal with AI built in so you + Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
Visit warp.dev to learn more. From f37c4eafc958de1243a971a849c9b7ddcfca129d Mon Sep 17 00:00:00 2001 From: Ajeet D'Souza <98ajeet@gmail.com> Date: Sun, 19 Nov 2023 14:08:21 +0530 Subject: [PATCH 4/4] Update CHANGELOG + min Nushell version --- CHANGELOG.md | 6 ++++++ README.md | 2 +- man/man1/zoxide-init.1 | 2 +- templates/nushell.txt | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 93cf4420..069b1a09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ 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 + +### Added + +- Nushell: add support for v0.86.0. + ## [0.9.2] - 2023-08-04 ### Added diff --git a/README.md b/README.md index 7ade4741..aaf2bf62 100644 --- a/README.md +++ b/README.md @@ -243,7 +243,7 @@ zoxide can be installed in 4 easy steps: > ``` > > **Note** - > zoxide only supports Nushell v0.73.0 and above. + > zoxide only supports Nushell v0.86.0+. diff --git a/man/man1/zoxide-init.1 b/man/man1/zoxide-init.1 index ee77216d..cd53ee90 100644 --- a/man/man1/zoxide-init.1 +++ b/man/man1/zoxide-init.1 @@ -45,7 +45,7 @@ Now, add this to the \fBend\fR of your config file (find it by running \fBsource ~/.zoxide.nu\fR .fi .sp -Note: zoxide only supports Nushell v0.73.0 and above. +Note: zoxide only supports Nushell v0.86.0+. .TP .B powershell Add this to the \fBend\fR of your config file (find it by running \fBecho diff --git a/templates/nushell.txt b/templates/nushell.txt index fc463f33..2cfdb008 100644 --- a/templates/nushell.txt +++ b/templates/nushell.txt @@ -86,4 +86,4 @@ alias {{cmd}}i = __zoxide_zi # # source ~/.zoxide.nu # -# Note: zoxide only supports Nushell v0.73.0 and above. +# Note: zoxide only supports Nushell v0.86.0+.