Skip to content

Commit

Permalink
fix: use concatStringsSep instead of intersperse
Browse files Browse the repository at this point in the history
  • Loading branch information
NickHu committed May 20, 2019
1 parent 0869cbd commit 62c3ded
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/programs/zsh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -721,15 +721,15 @@ in
''}
${optionalString (cfg.prezto.syntaxHighlighting.styles != {}) ''
zstyle ':prezto:module:syntax-highlighting' styles \
${ strings.intersperse " \\\n"
${ builtins.concatStringsSep " \\\n"
(attrsets.mapAttrsToList
(k: v: strings.escapeShellArg k + " " + strings.escapeShellArg v)
cfg.prezto.syntaxHighlighting.styles)
}
''}
${optionalString (cfg.prezto.syntaxHighlighting.pattern != {}) ''
zstyle ':prezto:module:syntax-highlighting' pattern \
${ strings.intersperse " \\\n"
${ builtins.concatStringsSep " \\\n"
(attrsets.mapAttrsToList
(k: v: strings.escapeShellArg k + " " + strings.escapeShellArg v)
cfg.prezto.syntaxHighlighting.pattern)
Expand Down

0 comments on commit 62c3ded

Please sign in to comment.