parent
cde1d33e61
commit
b04aa56503
@ -1 +1,4 @@ |
||||
{ powerline-go-standard = ./standard.nix; } |
||||
{ |
||||
powerline-go-bash = ./bash.nix; |
||||
powerline-go-zsh = ./zsh.nix; |
||||
} |
||||
|
@ -0,0 +1,31 @@ |
||||
{ config, lib, pkgs, ... }: |
||||
|
||||
with lib; |
||||
|
||||
{ |
||||
config = { |
||||
programs = { |
||||
zsh.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" ]; |
||||
}; |
||||
}; |
||||
}; |
||||
|
||||
nixpkgs.overlays = |
||||
[ (self: super: { zsh = pkgs.writeScriptBin "dummy-zsh" ""; }) ]; |
||||
|
||||
nmt.script = '' |
||||
assertFileExists home-files/.zshrc |
||||
assertFileContains \ |
||||
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' |
||||
''; |
||||
}; |
||||
} |
Loading…
Reference in new issue