xop is a cross-platform command-line tool to open a file or directory with the default application.
xop
sh cargo install xop