Crates.io | opn |
lib.rs | opn |
version | 0.4.7 |
source | src |
created_at | 2022-05-19 18:13:18.353841 |
updated_at | 2023-01-01 13:31:41.610326 |
description | `opn` command to simulate the MacOS `open` command elsewhere. |
homepage | https://github.com/martinlindhe/opn |
repository | |
max_upload_size | |
id | 589834 |
size | 4,777 |
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.
cargo install opn
Open folder in the file explorer:
opn .
Open url in default browser:
opn https://google.com
Open file in default app:
opn main.rs
Under MIT