2020-05-29 15:54:38 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
programs = {
|
2020-11-01 17:27:47 +00:00
|
|
|
zsh.enable = true;
|
2020-05-29 15:54:38 +00:00
|
|
|
|
|
|
|
powerline-go = {
|
|
|
|
enable = true;
|
|
|
|
newline = true;
|
|
|
|
modules = [ "nix-shell" ];
|
|
|
|
pathAliases = { "\\~/project/foo" = "prj-foo"; };
|
|
|
|
settings = {
|
|
|
|
ignore-repos = [ "/home/me/project1" "/home/me/project2" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-09-26 09:08:45 +00:00
|
|
|
test.stubs = {
|
|
|
|
powerline-go = { };
|
|
|
|
zsh = { };
|
|
|
|
};
|
2020-11-01 17:27:47 +00:00
|
|
|
|
2020-05-29 15:54:38 +00:00
|
|
|
nmt.script = ''
|
2020-11-01 17:27:47 +00:00
|
|
|
assertFileExists home-files/.zshrc
|
2021-11-29 05:05:49 +00:00
|
|
|
assertFileContains \
|
|
|
|
home-files/.zshrc \
|
|
|
|
'PS1='
|
2020-05-29 15:54:38 +00:00
|
|
|
assertFileContains \
|
2020-11-01 17:27:47 +00:00
|
|
|
home-files/.zshrc \
|
|
|
|
'/bin/powerline-go -error $? -shell zsh -modules nix-shell -newline -path-aliases \~/project/foo=prj-foo -ignore-repos /home/me/project1,/home/me/project2'
|
2020-05-29 15:54:38 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|