1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-24 03:59:46 +01:00
home-manager/tests/modules/programs/oh-my-posh/fish.nix

26 lines
536 B
Nix
Raw Normal View History

2022-09-29 13:08:53 +02:00
{ lib, ... }:
{
programs = {
fish.enable = true;
oh-my-posh = {
enable = true;
useTheme = "jandedobbeleer";
};
};
# Needed to avoid error with dummy fish package.
xdg.dataFile."fish/home-manager_generated_completions".source =
lib.mkForce (builtins.toFile "empty" "");
2022-12-05 02:51:03 +01:00
test.stubs.oh-my-posh = { };
2022-09-29 13:08:53 +02:00
nmt.script = ''
assertFileExists home-files/.config/fish/config.fish
assertFileContains \
home-files/.config/fish/config.fish \
'/bin/oh-my-posh init fish --config'
'';
}