2024-07-24 11:48:42 +01:00
|
|
|
{
|
2025-01-31 21:24:47 +01:00
|
|
|
programs = {
|
|
|
|
fish.enable = true;
|
|
|
|
starship.enable = true;
|
|
|
|
};
|
2024-07-24 11:48:42 +01:00
|
|
|
|
2025-01-31 21:24:47 +01:00
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.config/fish/config.fish
|
2024-07-24 11:48:42 +01:00
|
|
|
|
2025-01-31 21:24:47 +01:00
|
|
|
export GOT="$(tail -n 5 `_abs home-files/.config/fish/config.fish`)"
|
|
|
|
export NOT_EXPECTED="
|
|
|
|
if test \"\$TERM\" != dumb
|
|
|
|
/home/hm-user/.nix-profile/bin/starship init fish | source
|
2024-07-24 11:48:42 +01:00
|
|
|
|
2025-01-31 21:24:47 +01:00
|
|
|
end"
|
2024-07-24 11:48:42 +01:00
|
|
|
|
2025-01-31 21:24:47 +01:00
|
|
|
if [[ "$GOT" == "$NOT_EXPECTED" ]]; then
|
|
|
|
fail "Expected starship init to be inside the 'is-interactive' block but it wasn't."
|
|
|
|
fi
|
|
|
|
'';
|
2024-07-24 11:48:42 +01:00
|
|
|
}
|