From 9a934d291e7c0f2477d26595d4ac15123c91b4eb Mon Sep 17 00:00:00 2001 From: m0viefreak Date: Sat, 11 Jun 2016 14:15:57 +0200 Subject: [PATCH 1/2] 'main': Path separators: Leave styles empty by default If the separator feature is disabled, this makes it possible to change the main 'path' styles in a running session without the need to touch the '_pathseparator' styles, too. --- highlighters/main/main-highlighter.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/highlighters/main/main-highlighter.zsh b/highlighters/main/main-highlighter.zsh index f9c4f0b..540e05b 100644 --- a/highlighters/main/main-highlighter.zsh +++ b/highlighters/main/main-highlighter.zsh @@ -41,9 +41,9 @@ : ${ZSH_HIGHLIGHT_STYLES[commandseparator]:=none} : ${ZSH_HIGHLIGHT_STYLES[hashed-command]:=fg=green} : ${ZSH_HIGHLIGHT_STYLES[path]:=underline} -: ${ZSH_HIGHLIGHT_STYLES[path_pathseparator]:=${ZSH_HIGHLIGHT_STYLES[path]}} +: ${ZSH_HIGHLIGHT_STYLES[path_pathseparator]:=} : ${ZSH_HIGHLIGHT_STYLES[path_prefix]:=underline} -: ${ZSH_HIGHLIGHT_STYLES[path_prefix_pathseparator]:=${ZSH_HIGHLIGHT_STYLES[path_prefix]}} +: ${ZSH_HIGHLIGHT_STYLES[path_prefix_pathseparator]:=} : ${ZSH_HIGHLIGHT_STYLES[globbing]:=fg=blue} : ${ZSH_HIGHLIGHT_STYLES[history-expansion]:=fg=blue} : ${ZSH_HIGHLIGHT_STYLES[single-hyphen-option]:=none} From d119020a18f7be20aa8a47b212fa6f6151548245 Mon Sep 17 00:00:00 2001 From: m0viefreak Date: Sat, 11 Jun 2016 14:14:06 +0200 Subject: [PATCH 2/2] 'main': Document _pathseparator styles --- docs/highlighters/main.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/highlighters/main.md b/docs/highlighters/main.md index c3228ba..69c9d3e 100644 --- a/docs/highlighters/main.md +++ b/docs/highlighters/main.md @@ -27,7 +27,9 @@ This highlighter defines the following styles: * `commandseparator` - command separation tokens (`;`, `&&`) * `hashed-command` - hashed commands * `path` - existing filenames +* `path_pathseparator` - path separators in filenames (`/`), if unset, `path` is used (default) * `path_prefix` - prefixes of existing filenames +* `path_prefix_pathseparator` - path separators in prefixes of existing filenames (`/`), if unset, `path_prefix` is used (default) * `globbing` - globbing expressions (`*.txt`) * `history-expansion` - history expansion expressions (`!foo` and `^foo^bar`) * `single-hyphen-option` - single hyphen options (`-o`)