starship: fix nushell integration

Overwrite starship/init.nu if already exists, since this is a cache
file for sourcing in `init.nu`.
This commit is contained in:
Aidan Gauland 2022-12-24 15:48:22 +13:00 committed by Robert Helgesson
parent c55fa26ce0
commit 646ac0ad17
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -134,7 +134,7 @@ in {
if not ($starship_cache | path exists) { if not ($starship_cache | path exists) {
mkdir $starship_cache 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 = '' extraConfig = ''
source ${config.xdg.cacheHome}/starship/init.nu source ${config.xdg.cacheHome}/starship/init.nu