From e413b8c3b5e0283d6825a395a2dbb69c5ffa50b5 Mon Sep 17 00:00:00 2001 From: Jan Tebernum Date: Tue, 23 Jan 2024 10:10:11 +0100 Subject: [PATCH] zoxide: fix nushell 0.89 deprecation Since nushell 0.89, automatically spreading lists is deprecated. This commit introduces a string replace for the zoxide init script to replace the deprecated code. See: https://github.com/ajeetdsouza/zoxide/issues/662 Fixes: #4916 --- modules/programs/zoxide.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/programs/zoxide.nix b/modules/programs/zoxide.nix index fe82ffc25..89b634220 100644 --- a/modules/programs/zoxide.nix +++ b/modules/programs/zoxide.nix @@ -88,6 +88,7 @@ in { } ${cfg.package}/bin/zoxide init nushell ${cfgOptions} | str replace "def-env" "def --env" --all | # https://github.com/ajeetdsouza/zoxide/pull/632 + str replace --all "-- $rest" "-- ...$rest" | save --force ${config.xdg.cacheHome}/zoxide/init.nu ''; extraConfig = ''