15 lines
418 B
Nix
15 lines
418 B
Nix
{ lib, pkgs, config, ... }: {
|
|
programs.zsh = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
autosuggestions.enable = true;
|
|
interactiveShellInit = ''
|
|
${lib.getExe pkgs.nix-your-shell} zsh | source /dev/stdin
|
|
'';
|
|
promptInit = ''
|
|
# https://grml.org/zsh/grml-zsh-refcard.pdf
|
|
source ${pkgs.grml-zsh-config}/etc/zsh/zshrc
|
|
PS1='%n@${config.networking.fqdn} %/ \$ '
|
|
'';
|
|
};
|
|
}
|