From f160db7eff1d8d1ec99571cb60ba86b9d3c952fc Mon Sep 17 00:00:00 2001 From: willywos Date: Thu, 15 Oct 2015 22:25:38 -0500 Subject: [PATCH 1/3] Adding open command with different options for opening a file, application, url, and directory --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index 20f6ac8..59ab7b6 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ If you want to contribute, you are highly encouraged to do so. Please read the [ - [Networking Tools](#networking-tools) - [TCP/IP](#tcpip) - [Wi-Fi](#wi-fi) +- [Open](#open) - [Package Managers](#package-managers) - [Printing](#printing) - [Security](#security) @@ -482,6 +483,32 @@ defaults read /Library/Preferences/SystemConfiguration/com.apple.airport.prefere security find-generic-password -ga "ROUTERNAME" | grep "password:" ``` +## Open + +#### Open a Url +```bash +open http://www.github.com +``` + +#### Open a file +```bash +open README.md +``` + +#### Open an application using -a +```bash +open -a "Google Chrome" http://www.github.com +``` + +#### Open a directory in Finder +```bash +open /path/to/directory +``` + +#### Open the current directory +```bash +open . +``` ## Package Managers From 15704c5eb5de0cefc93b46bfec68e5d6c9d4c384 Mon Sep 17 00:00:00 2001 From: willywos Date: Fri, 16 Oct 2015 07:47:07 -0500 Subject: [PATCH 2/3] Moving Open under the Finder section. --- README.md | 57 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 29 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 59ab7b6..b76070f 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ If you want to contribute, you are highly encouraged to do so. Please read the [ - [Finder](#finder) - [Files and Folders](#files-and-folders) - [Icons](#icons) + - [Open](#open) - [Fonts](#fonts) - [Hardware](#hardware) - [Hardware Information](#hardware-information) @@ -43,7 +44,6 @@ If you want to contribute, you are highly encouraged to do so. Please read the [ - [Networking Tools](#networking-tools) - [TCP/IP](#tcpip) - [Wi-Fi](#wi-fi) -- [Open](#open) - [Package Managers](#package-managers) - [Printing](#printing) - [Security](#security) @@ -295,6 +295,34 @@ atsutil databases -removeUser && atsutil server -shutdown && atsutil server -pin ``` +## Open + +#### Open a Url +```bash +open http://www.github.com +``` + +#### Open a file +```bash +open README.md +``` + +#### Open an application using -a +```bash +open -a "Google Chrome" http://www.github.com +``` + +#### Open a directory in Finder +```bash +open /path/to/directory +``` + +#### Open the current directory +```bash +open . +``` + + ## Hardware ### Hardware Information @@ -483,33 +511,6 @@ defaults read /Library/Preferences/SystemConfiguration/com.apple.airport.prefere security find-generic-password -ga "ROUTERNAME" | grep "password:" ``` -## Open - -#### Open a Url -```bash -open http://www.github.com -``` - -#### Open a file -```bash -open README.md -``` - -#### Open an application using -a -```bash -open -a "Google Chrome" http://www.github.com -``` - -#### Open a directory in Finder -```bash -open /path/to/directory -``` - -#### Open the current directory -```bash -open . -``` - ## Package Managers - [Fink](http://www.finkproject.org) - The full world of Unix Open Source software for Darwin. From 5c542bfffa41de8de2d6e7c82fbf349cc0c275b2 Mon Sep 17 00:00:00 2001 From: willywos Date: Fri, 16 Oct 2015 08:00:32 -0500 Subject: [PATCH 3/3] capitalization fixes for the titles. --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b76070f..13e1cf5 100644 --- a/README.md +++ b/README.md @@ -297,27 +297,28 @@ atsutil databases -removeUser && atsutil server -shutdown && atsutil server -pin ## Open -#### Open a Url +#### Open Url ```bash open http://www.github.com ``` -#### Open a file +#### Open File ```bash open README.md ``` -#### Open an application using -a +#### Open Applications +You can open applications using -a ```bash open -a "Google Chrome" http://www.github.com ``` -#### Open a directory in Finder +#### Open Directory ```bash open /path/to/directory ``` -#### Open the current directory +#### Open Current Directory ```bash open . ```