fish: add function to find broken symlinks

This commit is contained in:
Charles Gould 2022-02-16 10:00:22 -05:00
parent 1ffb952480
commit cbbeba15bf

View File

@ -0,0 +1,5 @@
function broken_symlinks
for link in (fd --type=symlink --hidden --exclude=.git --exclude=Library "" $HOME | sort)
test -e $link || echo $link
end
end