__z_clean.fish 289 B

12345678910
  1. function __z_clean -d "Clean up .z file to remove paths no longer valid"
  2. set -l tmpfile (mktemp $Z_DATA.XXXXXX)
  3. if test -f $tmpfile
  4. command awk -F "|" 'system("test -d \"" $1 "\"") == 0 { print $0 }' $Z_DATA > $tmpfile
  5. command mv -f $tmpfile $Z_DATA
  6. end
  7. __z_complete
  8. end