You are not logged in.

#1 2022-08-29 05:41:22

cloverskull
Member
Registered: 2018-09-30
Posts: 172

MacOS-like 'open'

One thing I enjoy on my work Mac is the 'open' command. For the uninitiated, the command is treated similar to xdg-open. This script, saved as /usr/local/bin/open has basically the same outcome as the Mac 'open' command. Try it in a directory, or try using it on some file.

xdg-open "$1" &> /dev/null &

Sometimes the simplest of things become handy. Figured I would share, cheers.

Offline

#2 2022-08-29 05:56:20

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: MacOS-like 'open'


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB