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
This commit is contained in:
Jan Tebernum 2024-01-23 10:10:11 +01:00 committed by GitHub
parent 3d0dc78e80
commit 3df2a80f3f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 = ''