Update min version of Nushell 0.86.0 (#632)

Co-authored-by: Ajeet D'Souza <98ajeet@gmail.com>
This commit is contained in:
hackers267 2023-11-19 16:40:52 +08:00 committed by GitHub
parent afdcf6bdff
commit f537a4e6d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 5 deletions

View File

@ -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/), 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). 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 ## [0.9.2] - 2023-08-04
### Added ### Added

View File

@ -243,7 +243,7 @@ zoxide can be installed in 4 easy steps:
> ``` > ```
> >
> **Note** > **Note**
> zoxide only supports Nushell v0.73.0 and above. > zoxide only supports Nushell v0.86.0+.
</details> </details>

View File

@ -45,7 +45,7 @@ Now, add this to the \fBend\fR of your config file (find it by running
\fBsource ~/.zoxide.nu\fR \fBsource ~/.zoxide.nu\fR
.fi .fi
.sp .sp
Note: zoxide only supports Nushell v0.73.0 and above. Note: zoxide only supports Nushell v0.86.0+.
.TP .TP
.B powershell .B powershell
Add this to the \fBend\fR of your config file (find it by running \fBecho Add this to the \fBend\fR of your config file (find it by running \fBecho

View File

@ -39,7 +39,7 @@ if (not ($env | default false __zoxide_hooked | get __zoxide_hooked)) {
# #
# Jump to a directory using only keywords. # 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 arg0 = ($rest | append '~').0
let path = if (($rest | length) <= 1) and ($arg0 == '-' or ($arg0 | path expand | path type) == dir) { let path = if (($rest | length) <= 1) and ($arg0 == '-' or ($arg0 | path expand | path type) == dir) {
$arg0 $arg0
@ -53,7 +53,7 @@ def-env __zoxide_z [...rest:string] {
} }
# Jump to a directory using interactive search. # 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")' cd $'(zoxide query --interactive -- $rest | str trim -r -c "\n")'
{%- if echo %} {%- if echo %}
echo $env.PWD echo $env.PWD
@ -86,4 +86,4 @@ alias {{cmd}}i = __zoxide_zi
# #
# source ~/.zoxide.nu # source ~/.zoxide.nu
# #
# Note: zoxide only supports Nushell v0.73.0 and above. # Note: zoxide only supports Nushell v0.86.0+.