Add bash stuff

This commit is contained in:
Johannes Jöns 2023-02-27 17:33:08 +01:00
parent 1bcca6bfe3
commit 9c5fca989c
2 changed files with 9 additions and 4 deletions

View file

@ -175,6 +175,14 @@ in
}; };
}; };
}; };
bash = {
enable = true;
historyFile = "${hcfg.xdg.stateHome}/bash/history";
shellAliases = {
gc = "sudo nix store gc";
rb = "sudo git -C /etc/nixos pull && sudo nix flake update /etc/nixos/ && sudo nixos-rebuild switch && sudo git -C /etc/nixos add . && sudo git -C /etc/nixos commit -m 'Updated flake.lock' && sudo git -C /etc/nixos push";
};
};
}; };
}; };
}; };

View file

@ -59,10 +59,7 @@ in
bash = { bash = {
enable = true; enable = true;
historyFile = "${hcfg.xdg.stateHome}/bash/history"; historyFile = "${hcfg.xdg.stateHome}/bash/history";
shellAliases = { rb = "sudo git -C /etc/nixos pull && sudo nix flake update /etc/nixos/ && sudo nixos-rebuild switch && sudo git -C /etc/nixos add . && sudo git -C /etc/nixos commit -m 'Updated flake.lock' && sudo git -C /etc/nixos push";
gc = "sudo nix store gc";
rb = "sudo nix flake update /etc/nixos/ && sudo nixos-rebuild switch";
};
}; };
zsh.shellAliases = hcfg.programs.bash.shellAliases; zsh.shellAliases = hcfg.programs.bash.shellAliases;
fish.shellAbbrs = hcfg.programs.bash.shellAliases; fish.shellAbbrs = hcfg.programs.bash.shellAliases;