From 646ac0ad17e295c2dbe338ff62c18f78d54f3d40 Mon Sep 17 00:00:00 2001 From: Aidan Gauland Date: Sat, 24 Dec 2022 15:48:22 +1300 Subject: [PATCH] starship: fix nushell integration Overwrite starship/init.nu if already exists, since this is a cache file for sourcing in `init.nu`. --- modules/programs/starship.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/programs/starship.nix b/modules/programs/starship.nix index 0a83a7b88..0fb4d39a4 100644 --- a/modules/programs/starship.nix +++ b/modules/programs/starship.nix @@ -134,7 +134,7 @@ in { if not ($starship_cache | path exists) { mkdir $starship_cache } - ${starshipCmd} init nu | save ${config.xdg.cacheHome}/starship/init.nu + ${starshipCmd} init nu | save --force ${config.xdg.cacheHome}/starship/init.nu ''; extraConfig = '' source ${config.xdg.cacheHome}/starship/init.nu