infra/modules/nixos/community-builder/default.nix
Artturin ebf93eeb4f modules/nixos/community-builder: add a sane zsh config
Biggest benefits are better prompt and the ability to properly use arrow up
to go through the history

`nix<up>` searches through commands which start with `nix`

https://grml.org/
2024-05-31 02:51:05 +00:00

20 lines
500 B
Nix

{ pkgs, ... }: {
imports = [
./packages.nix
./users.nix
];
programs.fish.enable = true;
# disable generated completion
environment.etc."fish/generated_completions".text = pkgs.lib.mkForce "";
programs.zsh = {
enable = true;
# https://grml.org/zsh/grmlzshrc.html
# https://grml.org/zsh/grml-zsh-refcard.pdf
interactiveShellInit = ''
source ${pkgs.grml-zsh-config}/etc/zsh/zshrc
'';
promptInit = ""; # otherwise it'll override the grml prompt
};
}