Skip to content

Commit e8c5f7a

Browse files
authored
Upgrade Nushell to v0.73.0 (#495)
1 parent f74873b commit e8c5f7a

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
- Fzf: 'invalid option' on macOS.
1616
- PowerShell: handle UTF-8 encoding correctly.
1717
- Zsh: don't hide output from `chpwd` hooks.
18+
- Nushell: upgrade minimum supported version to v0.73.0.
1819

1920
## [0.8.3] - 2022-09-02
2021

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ zoxide init fish | source
204204
Add this to your env file (find it by running `$nu.env-path` in Nushell):
205205

206206
```sh
207-
zoxide init nushell | save ~/.zoxide.nu
207+
zoxide init nushell | save -f ~/.zoxide.nu
208208
```
209209

210210
Now, add this to the end of your config file (find it by running
@@ -215,7 +215,7 @@ source ~/.zoxide.nu
215215
```
216216

217217
> **Note**
218-
> zoxide only supports Nushell v0.63.0 and above.
218+
> zoxide only supports Nushell v0.73.0 and above.
219219
220220
</details>
221221

man/man1/zoxide-init.1

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Note: zoxide only supports fish v3.4.0 and above.
3535
Add this to your env file (find it by running \fB$nu.env-path\fR in Nushell):
3636
.sp
3737
.nf
38-
\fBzoxide init nushell --hook prompt | save ~/.zoxide.nu\fR
38+
\fBzoxide init nushell --hook prompt | save -f ~/.zoxide.nu\fR
3939
.fi
4040
.sp
4141
Now, add this to the end of your config file (find it by running
@@ -45,7 +45,7 @@ Now, add this to the end of your config file (find it by running
4545
\fBsource ~/.zoxide.nu\fR
4646
.fi
4747
.sp
48-
Note: zoxide only supports Nushell v0.63.0 and above.
48+
Note: zoxide only supports Nushell v0.73.0 and above.
4949
.TP
5050
.B powershell
5151
Add this to your configuration (find it by running \fBecho $profile\fR in

templates/nushell.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ let-env config = ($env.config | update hooks.env_change.PWD ($env.config.hooks.e
3939
def-env __zoxide_z [...rest:string] {
4040
# `z -` does not work yet, see https://github.com/nushell/nushell/issues/4769
4141
let arg0 = ($rest | append '~').0
42-
let path = if (($rest | length) <= 1) && ($arg0 == '-' || ($arg0 | path expand | path type) == dir) {
42+
let path = if (($rest | length) <= 1) and ($arg0 == '-' or ($arg0 | path expand | path type) == dir) {
4343
$arg0
4444
} else {
4545
(zoxide query --exclude $env.PWD -- $rest | str trim -r -c "\n")
@@ -77,11 +77,11 @@ alias {{cmd}}i = __zoxide_zi
7777
{{ section }}
7878
# Add this to your env file (find it by running `$nu.env-path` in Nushell):
7979
#
80-
# zoxide init nushell --hook prompt | save ~/.zoxide.nu
80+
# zoxide init nushell --hook prompt | save -f ~/.zoxide.nu
8181
#
8282
# Now, add this to the end of your config file (find it by running
8383
# `$nu.config-path` in Nushell):
8484
#
8585
# source ~/.zoxide.nu
8686
#
87-
# Note: zoxide only supports Nushell v0.63.0 and above.
87+
# Note: zoxide only supports Nushell v0.73.0 and above.

0 commit comments

Comments
 (0)