{ lib, config, pkgs, ... }: let cfg = config.krop.hm.programs.zsh; in { options.krop.hm.programs.zsh = { enable = lib.mkOption { type = lib.types.bool; default = true; example = false; description = "Enable my zsh configuration"; }; }; config = lib.mkIf cfg.enable { programs.zsh = { enable = true; autocd = true; autosuggestion.enable = true; syntaxHighlighting.enable = true; initExtra = '' bindkey "^[[1;3D" backward-word bindkey "^[[1;5D" backward-word bindkey "^[[1;3C" forward-word bindkey "^[[1;5C" forward-word bindkey "^[[3~" delete-char autoload -Uz vcs_info setopt auto_menu setopt complete_in_word setopt always_to_end # zstyle command format # zstyle ::::::