From 8dc3f6bad165a7f4bea4421690b45402366431a5 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 18 Mar 2022 17:33:21 +0100 Subject: [PATCH] cat-highlight: Allow | without space in $LESSOPEN --- .config/zsh/functions.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/zsh/functions.zsh b/.config/zsh/functions.zsh index 0407dac..15deec3 100644 --- a/.config/zsh/functions.zsh +++ b/.config/zsh/functions.zsh @@ -45,7 +45,7 @@ function cat-highlight() fi done - local catopen="${LESSOPEN/| /}" + local catopen="${LESSOPEN/|/}" eval "${catopen/\%s/${files}} | \cat ${args}" else \cat $@