powerline-go: add module

PR #1285
This commit is contained in:
Damien Cassou 2020-05-29 17:54:38 +02:00 committed by Robert Helgesson
parent edc3bede6e
commit 478022afad
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
7 changed files with 164 additions and 0 deletions

View file

@ -0,0 +1 @@
{ powerline-go-standard = ./standard.nix; }

View file

@ -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 $? -modules nix-shell -newline -path-aliases \~/project/foo=prj-foo -ignore-repos /home/me/project1,/home/me/project2'
'';
};
}