mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-01 20:55:24 +02:00
common/open, open.fish: add page (#10848)
This commit is contained in:
parent
bbd40cf6a6
commit
9117d7d1f4
2 changed files with 40 additions and 0 deletions
25
pages/common/open.fish.md
Normal file
25
pages/common/open.fish.md
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
# open
|
||||||
|
|
||||||
|
> Opens files, directories, and URIs with default applications.
|
||||||
|
> This command is available through `fish` on operating systems without the built-in `open` command (e.g. Haiku and macOS).
|
||||||
|
> More information: <https://fishshell.com/docs/current/cmds/open.html>.
|
||||||
|
|
||||||
|
- Open a file with the associated application:
|
||||||
|
|
||||||
|
`open {{path/to/file.ext}}`
|
||||||
|
|
||||||
|
- Open all the files of a given extension in the current directory with the associated application:
|
||||||
|
|
||||||
|
`open {{*.ext}}`
|
||||||
|
|
||||||
|
- Open a directory using the default file manager:
|
||||||
|
|
||||||
|
`open {{path/to/directory}}`
|
||||||
|
|
||||||
|
- Open a website using the default web browser:
|
||||||
|
|
||||||
|
`open {{https://example.com}}`
|
||||||
|
|
||||||
|
- Open a specific URI using the default application that can handle it:
|
||||||
|
|
||||||
|
`open {{tel:123}}`
|
15
pages/common/open.md
Normal file
15
pages/common/open.md
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# open
|
||||||
|
|
||||||
|
> `open` can refer to multiple commands with the same name.
|
||||||
|
|
||||||
|
- View documentation for the command available in macOS:
|
||||||
|
|
||||||
|
`tldr open -p osx`
|
||||||
|
|
||||||
|
- View documentation for the macOS command in older versions of `tldr` command-line client:
|
||||||
|
|
||||||
|
`tldr open -o osx`
|
||||||
|
|
||||||
|
- View documentation for the command available through `fish`:
|
||||||
|
|
||||||
|
`tldr open.fish`
|
Loading…
Add table
Reference in a new issue