danth / stylix

System-wide colorscheming and typography for NixOS
https://stylix.danth.me/
MIT License
1.21k stars 157 forks source link

fish: `base16-fish` script runs twice #527

Open donovanglover opened 2 months ago

donovanglover commented 2 months ago

Noticed while finding the cause of https://github.com/danth/stylix/issues/526. Seems to be caused by using interactiveShellInit and promptInit.

danth commented 2 months ago

Yes, this will be because it appears in both the NixOS configuration and the Home Manager configuration when they're used together.

We could prevent it by setting an environment variable once the script has completed, then testing for that environment variable before trying to run it again.