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