X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=zk.zsh;fp=zk.zsh;h=bfa1647840bf32285c5e54d3f9e2579810a07af8;hb=2ae6d57d3990fc714d2d132fe2348fc47426e04d;hp=816782adae3c08904d08726a90128ef456098dfd;hpb=5d832e1a01e434008f1dc2f59ecf29922c447a4a;p=zk.zsh.git 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)