diff options
Diffstat (limited to 'infra/libkookie/home-manager/tests/modules/programs/powerline-go/bash.nix')
-rw-r--r-- | infra/libkookie/home-manager/tests/modules/programs/powerline-go/bash.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/infra/libkookie/home-manager/tests/modules/programs/powerline-go/bash.nix b/infra/libkookie/home-manager/tests/modules/programs/powerline-go/bash.nix new file mode 100644 index 000000000000..b01fcb1a75d2 --- /dev/null +++ b/infra/libkookie/home-manager/tests/modules/programs/powerline-go/bash.nix @@ -0,0 +1,28 @@ +{ config, lib, pkgs, ... }: + +with lib; + +{ + config = { + programs = { + bash.enable = true; + + powerline-go = { + enable = true; + newline = true; + modules = [ "nix-shell" ]; + pathAliases = { "\\~/project/foo" = "prj-foo"; }; + settings = { + ignore-repos = [ "/home/me/project1" "/home/me/project2" ]; + }; + }; + }; + + nmt.script = '' + assertFileExists home-files/.bashrc + assertFileContains \ + home-files/.bashrc \ + '/bin/powerline-go -error $old_exit_status -modules nix-shell -newline -path-aliases \~/project/foo=prj-foo -ignore-repos /home/me/project1,/home/me/project2' + ''; + }; +} |