fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Benoit Louypowerline-go: add support for -modules-rightf46972e4

master
800 B33 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  config = {
7    programs = {
8      bash.enable = true;
9
10      powerline-go = {
11        enable = true;
12        newline = true;
13        modules = [ "nix-shell" ];
14        pathAliases = { "\\~/project/foo" = "prj-foo"; };
15        settings = {
16          ignore-repos = [ "/home/me/project1" "/home/me/project2" ];
17        };
18      };
19    };
20
21    test.stubs.powerline-go = { };
22
23    nmt.script = ''
24      assertFileExists home-files/.bashrc
25      assertFileContains \
26        home-files/.bashrc \
27        'PS1='
28      assertFileContains \
29        home-files/.bashrc \
30        '/bin/powerline-go -error $old_exit_status -shell bash -modules nix-shell -newline -path-aliases \~/project/foo=prj-foo -ignore-repos /home/me/project1,/home/me/project2'
31    '';
32  };
33}