News for hackers. Stuff that matters.
Re:My Favorite One Liners by maweki on Monday May 03, 2021 @09:56AM (#27025109)
> My favourite one-liner is "open .", to open the current directory in Finder.

For linux one can use `xdg-open .` to use the associated application. Works with pdf, image files, videos, etc.

I have the alias x=xdg-open in my .bashrc, so that I use `x somefile` to open files.

Re:My Favorite One Liners by russh on Monday May 03, 2021 @10:48AM (#27025743)
Thank you, thank you, thank you! "open ." is post-it note worthy.
Re:My Favorite One Liners by pletnes on Monday May 03, 2021 @01:33PM (#27028066)
Also «open somefile.txt» can open, well, any file or directory, just as if you double clicked it. It works on multiple files, too. And possibly URLs, but I don’t have a mac anymore to check.