#file-explorer #command #open #file-path #macos #browser #filetype

app opn

opn command to simulate the MacOS open command elsewhere

3 releases

0.4.7 Jan 1, 2023
0.4.2 May 19, 2022
0.4.0 May 19, 2022

#178 in Simulation

MIT license

3KB

About

opn takes an argument of a file, path or a URL, and opens the registered filetype handler, file explorer or web browser accordingly.

The opn command simulates the MacOS open command, targeting Linux and Windows.

Installation

cargo install opn

Usage

Open folder in the file explorer:

opn .

Open url in default browser:

opn https://google.com

Open file in default app:

opn main.rs

License

Under MIT

No runtime deps