From 9117d7d1f4d68450facb7e35c79c4c3aef448826 Mon Sep 17 00:00:00 2001 From: Reinhart Previano Koentjoro Date: Tue, 10 Oct 2023 10:40:03 +0700 Subject: [PATCH] common/open, open.fish: add page (#10848) --- pages/common/open.fish.md | 25 +++++++++++++++++++++++++ pages/common/open.md | 15 +++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 pages/common/open.fish.md create mode 100644 pages/common/open.md diff --git a/pages/common/open.fish.md b/pages/common/open.fish.md new file mode 100644 index 000000000..5ae4dabc8 --- /dev/null +++ b/pages/common/open.fish.md @@ -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: . + +- 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}}` diff --git a/pages/common/open.md b/pages/common/open.md new file mode 100644 index 000000000..aa91097e9 --- /dev/null +++ b/pages/common/open.md @@ -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`