1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-02 23:21:02 +01:00
home-manager/tests/modules/programs/powerline-go/bash.nix

33 lines
828 B
Nix

{
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 \
'PS1='
assertFileContains \
home-files/.bashrc \
'/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'
assertFileContains \
home-files/.bashrc \
'if [[ ";''${PROMPT_COMMAND:-};" != *";_update_ps1;"* ]]; then'
'';
}