#!/usr/bin/env zsh local file=$Z4H/stickycache/dir-history-$EUID local tmp=$file.tmp.$$ print -rC1 -- $_z4h_dir_history >$tmp zf_mv -f -- $tmp $file