From 2ae6d57d3990fc714d2d132fe2348fc47426e04d Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 17 Mar 2022 17:36:40 +0300 Subject: [PATCH] Nicer separator --- zk.zsh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/zk.zsh b/zk.zsh index 816782a..bfa1647 100755 --- a/zk.zsh +++ b/zk.zsh @@ -6,7 +6,7 @@ set -e ZK_VERSION=ZKZSH1 usage() { - cat >&2 <&2 <" if [[ $ZK_CACHE ]]; then print -r "$data" > $ZK_CACHE/${page}.html - cat $ZK_CACHE/${page}.html + < $ZK_CACHE/${page}.html else print -r "$data" fi @@ -166,7 +167,7 @@ genIndex() { for p (${(oi)_links}) \ entries=($entries "[$p] (${pages[$p]}) (${sizes[$p]} bytes)") if [[ $cats ]]; then - entries=($entries " " "Subdirectories:" " ") + entries=($entries $separator "Subdirectories:" $separator) for p (${(oi)cats}) { entries=($entries "[$p/index]") _links=($p/index $_links) -- 2.44.0