Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update nushell.txt to fit nushell #632

Merged
merged 5 commits into from
Nov 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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+.

</details>

Expand Down
2 changes: 1 addition & 1 deletion man/man1/zoxide-init.1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions templates/nushell.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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+.
Loading