home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit a1299abd752eb21e34b59e1b423f81a3d6738eb5
parent 661e35b96d1408ca3af29fd569600ed04ca07c85
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Thu, 27 Jun 2019 19:26:55 +0200

profiles.zsh: configure zsh-highlight highlighters

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mmodules/profiles/zsh.nix | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/profiles/zsh.nix b/modules/profiles/zsh.nix @@ -33,6 +33,7 @@ in localVariables = { EMOJI_CLI_KEYBIND = "^n"; EMOJI_CLI_USE_EMOJI = "yes"; + ZSH_HIGHLIGHT_HIGHLIGHTERS = [ "main" "brackets" "pattern" ]; }; shellAliases = import ./aliases.shell.nix; plugins = [ @@ -62,6 +63,9 @@ in select-word-style bash # syntax highlighting source ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + ZSH_HIGHLIGHT_PATTERNS+=('rm -rf *' 'fg=white,bold,bg=red') + ZSH_HIGHLIGHT_PATTERNS+=('rm -fR *' 'fg=white,bold,bg=red') + ZSH_HIGHLIGHT_PATTERNS+=('rm -fr *' 'fg=white,bold,bg=red') # history-substring-search bindkey '^[[A' history-substring-search-up bindkey '^[[B' history-substring-search-down