Yes, that looks safer. I didn't realize I could put the `-X` option at the end. The man page says:
Usage: fd [OPTIONS] [pattern] [path]...
So, I presumed the path had to go last.
Usage: fd [OPTIONS] [pattern] [path]...
So, I presumed the path had to go last.
This ensures even if you have filenames starting with - they won't be interpreted as options for rm. For even more sanity of mind you may want to turn on -a for absolute paths, although I don't see an example right now where using relative paths would go wrong.