1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-09-21 05:47:29 +02:00

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 Mikilio
parent 2306aabbe7
commit e413b8c3b5
No known key found for this signature in database
GPG key ID: 5B2F1A890CF33F3F

View file

@ -88,6 +88,7 @@ in {
} }
${cfg.package}/bin/zoxide init nushell ${cfgOptions} | ${cfg.package}/bin/zoxide init nushell ${cfgOptions} |
str replace "def-env" "def --env" --all | # https://github.com/ajeetdsouza/zoxide/pull/632 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 save --force ${config.xdg.cacheHome}/zoxide/init.nu
''; '';
extraConfig = '' extraConfig = ''