funny fish

This commit is contained in:
2025-03-28 13:34:53 +01:00
parent 1fa629168a
commit ee75e21baf
54 changed files with 1144 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
function __z_clean -d "Clean up .z file to remove paths no longer valid"
set -l tmpfile (mktemp $Z_DATA.XXXXXX)
if test -f $tmpfile
while read line
set -l path (string split '|' $line)[1]
test -d $path; and echo $line
end <$Z_DATA >$tmpfile
command mv -f $tmpfile $Z_DATA
end
end