modules/darwin/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/
This commit is contained in:
parent
fa19f663e5
commit
d3d5e60e5a
1 changed files with 10 additions and 0 deletions
|
@ -1,6 +1,16 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./packages.nix
|
./packages.nix
|
||||||
./users.nix
|
./users.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
programs.zsh = {
|
||||||
|
# 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
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue