mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2024-11-22 12:55:13 +00:00
Fixes for Nushell 0.33
This commit is contained in:
parent
7128b52cdb
commit
340454b49b
@ -5,6 +5,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
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Nushell: errors on 0.33.0.
|
||||||
|
|
||||||
## [0.7.2] - 2021-06-10
|
## [0.7.2] - 2021-06-10
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
@ -56,7 +56,7 @@ def __zoxide_z [...rest:string] {
|
|||||||
if (echo $rest | length) <= 1 && ($arg0 == '-' || (echo $arg0 | path expand | path exists)) {
|
if (echo $rest | length) <= 1 && ($arg0 == '-' || (echo $arg0 | path expand | path exists)) {
|
||||||
cd $arg0
|
cd $arg0
|
||||||
} {
|
} {
|
||||||
cd (zoxide query --exclude (pwd) -- $rest | str trim)
|
cd $"(zoxide query --exclude (pwd) -- $rest | str trim)"
|
||||||
}
|
}
|
||||||
{%- if echo %}
|
{%- if echo %}
|
||||||
pwd
|
pwd
|
||||||
@ -69,7 +69,7 @@ def __zoxide_zi [...rest:string] {
|
|||||||
if (shells | where active == $true | get name) != filesystem {
|
if (shells | where active == $true | get name) != filesystem {
|
||||||
$"zoxide: can only jump directories on filesystem(char nl)"
|
$"zoxide: can only jump directories on filesystem(char nl)"
|
||||||
} {
|
} {
|
||||||
cd (zoxide query -i -- $rest | str trim)
|
cd $"(zoxide query -i -- $rest | str trim)"
|
||||||
{%- if echo %}
|
{%- if echo %}
|
||||||
pwd
|
pwd
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user