From 340454b49b22ae7ec39bf4a2557a9ff0cb216041 Mon Sep 17 00:00:00 2001 From: Ajeet D'Souza <98ajeet@gmail.com> Date: Thu, 1 Jul 2021 02:11:46 +0530 Subject: [PATCH] Fixes for Nushell 0.33 --- CHANGELOG.md | 6 ++++++ templates/nushell.txt | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 248348d..cb20168 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/templates/nushell.txt b/templates/nushell.txt index 217ab4a..736ff7b 100644 --- a/templates/nushell.txt +++ b/templates/nushell.txt @@ -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 %}