foxshell/fn/-z4h-write-dir-history
2025-07-04 11:48:40 -05:00

6 lines
150 B
Bash

#!/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