forked from fabian/nix_config
update zshrc
This commit is contained in:
parent
06b9135417
commit
f77410de7c
4 changed files with 24 additions and 12 deletions
|
@ -7,12 +7,19 @@
|
|||
with lib; let
|
||||
cfg = config.local.services.zsh;
|
||||
in {
|
||||
options.local.services.zsh.enable = mkEnableOption "zsh settings";
|
||||
options.local.services.zsh = {
|
||||
enable = mkEnableOption "zsh settings";
|
||||
prompt = mkOption {
|
||||
type = types.str;
|
||||
description = "prompt for your terminal";
|
||||
example = literalExpression "%B[%~] \${vcs_info_msg_0_}%b";
|
||||
};
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
initExtra = import ./zshrc.nix pkgs;
|
||||
initExtra = import ./zshrc.nix {inherit config lib pkgs;};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue