Fixes for Nushell 0.33

This commit is contained in:
Ajeet D'Souza 2021-07-01 02:11:46 +05:30
parent 7128b52cdb
commit 340454b49b
2 changed files with 8 additions and 2 deletions

View File

@ -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/),
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
### Fixed

View File

@ -56,7 +56,7 @@ def __zoxide_z [...rest:string] {
if (echo $rest | length) <= 1 && ($arg0 == '-' || (echo $arg0 | path expand | path exists)) {
cd $arg0
} {
cd (zoxide query --exclude (pwd) -- $rest | str trim)
cd $"(zoxide query --exclude (pwd) -- $rest | str trim)"
}
{%- if echo %}
pwd
@ -69,7 +69,7 @@ def __zoxide_zi [...rest:string] {
if (shells | where active == $true | get name) != filesystem {
$"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 %}
pwd
{%- endif %}