3 releases
| 0.4.7 | Jan 1, 2023 |
|---|---|
| 0.4.2 | May 19, 2022 |
| 0.4.0 | May 19, 2022 |
#288 in Simulation
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