From 8faadd48977746e33ffd2e4a047141e4cef0e4c8 Mon Sep 17 00:00:00 2001 From: Diomidis Spinellis Date: Tue, 26 Jan 2016 11:08:46 +0200 Subject: [PATCH 1/4] Add short Microsoft Windows section --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ef25da8..e994e74 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ - [One-liners](#one-liners) - [Obscure but useful](#obscure-but-useful) - [OS X only](#os-x-only) +- [Windows](#windows) - [More resources](#more-resources) - [Disclaimer](#disclaimer) @@ -35,7 +36,7 @@ but it has since moved to GitHub, where people more talented than the original a Scope: - This guide is both for beginners and the experienced. The goals are *breadth* (everything important), *specificity* (give concrete examples of the most common case), and *brevity* (avoid things that aren't essential or digressions you can easily look up elsewhere). Every tip is essential in some situation or significantly saves time over alternatives. -- This is written for Linux, with the exception of the "[OS X only](#os-x-only)" section. Many of the other items apply or can be installed on other Unices or OS X (or even Cygwin). +- This is written for Linux, with the exception of the "[OS X only](#os-x-only)" and "[Windows](#windows)" sections. Many of the other items apply or can be installed on other Unices or OS X (or even Cygwin). - The focus is on interactive Bash, though many tips apply to other shells and to general Bash scripting. - It includes both "standard" Unix commands as well as ones that require special package installs -- so long as they are important enough to merit inclusion. @@ -507,6 +508,23 @@ These are items relevant *only* on OS X. - To get OS X release information, use `sw_vers`. +## Windows + +- Access the power of the Unix shell under Microsoft Windows by installing Cygwin. Most of the things described in this document will work out of the box. + +- Install additional Unix programs with the Cygwin's package manager. + +- Use `mintty` as your command-line window. + +- Access the Windows clipboard through `/dev/clipboard`. + +- Run `cygstart` to open an arbitrary file through its registered application. + +- Access the Windows registry with `regtool`. + +- Convert between Cygwin and Windows-style file paths with `cygpath`. This is most useful in scripts that invoke Windows programs. + +- You can perform and script most Windows system administration tasks from the command line by learning and using `wmic`. ## More resources From 6f752fa251b5df1868cfd8343ea1a0630bed56bd Mon Sep 17 00:00:00 2001 From: Diomidis Spinellis Date: Wed, 27 Jan 2016 00:25:56 +0200 Subject: [PATCH 2/4] Add "only" to Windows section title --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e994e74..a1ffb25 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ - [One-liners](#one-liners) - [Obscure but useful](#obscure-but-useful) - [OS X only](#os-x-only) -- [Windows](#windows) +- [Windows only](#windows-only) - [More resources](#more-resources) - [Disclaimer](#disclaimer) @@ -36,7 +36,7 @@ but it has since moved to GitHub, where people more talented than the original a Scope: - This guide is both for beginners and the experienced. The goals are *breadth* (everything important), *specificity* (give concrete examples of the most common case), and *brevity* (avoid things that aren't essential or digressions you can easily look up elsewhere). Every tip is essential in some situation or significantly saves time over alternatives. -- This is written for Linux, with the exception of the "[OS X only](#os-x-only)" and "[Windows](#windows)" sections. Many of the other items apply or can be installed on other Unices or OS X (or even Cygwin). +- This is written for Linux, with the exception of the "[OS X only](#os-x-only)" and "[Windows only](#windows-only)" sections. Many of the other items apply or can be installed on other Unices or OS X (or even Cygwin). - The focus is on interactive Bash, though many tips apply to other shells and to general Bash scripting. - It includes both "standard" Unix commands as well as ones that require special package installs -- so long as they are important enough to merit inclusion. @@ -508,7 +508,7 @@ These are items relevant *only* on OS X. - To get OS X release information, use `sw_vers`. -## Windows +## Windows only - Access the power of the Unix shell under Microsoft Windows by installing Cygwin. Most of the things described in this document will work out of the box. From 82d8626287eae6e89cfec111193ecdf52baa566d Mon Sep 17 00:00:00 2001 From: Diomidis Spinellis Date: Wed, 27 Jan 2016 08:47:33 +0200 Subject: [PATCH 3/4] Summarize Cygwin and Windows path mapping Addresses: #issuecomment-175369010 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a1ffb25..c406e8f 100644 --- a/README.md +++ b/README.md @@ -522,7 +522,7 @@ These are items relevant *only* on OS X. - Access the Windows registry with `regtool`. -- Convert between Cygwin and Windows-style file paths with `cygpath`. This is most useful in scripts that invoke Windows programs. +- Note that a `C:\` Windows drive path becomes `/cygdrive/c` under Cygwin, and that Cygwin's `/` appears under `C:\cygwin` on Windows. Convert between Cygwin and Windows-style file paths with `cygpath`. This is most useful in scripts that invoke Windows programs. - You can perform and script most Windows system administration tasks from the command line by learning and using `wmic`. From 448887b781cdf5ae6ddb9108e07e4ad37ee93ce2 Mon Sep 17 00:00:00 2001 From: Diomidis Spinellis Date: Wed, 27 Jan 2016 08:56:05 +0200 Subject: [PATCH 4/4] Add Cygwin link Addresses: #issuecomment-175369010 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c406e8f..77fcd62 100644 --- a/README.md +++ b/README.md @@ -510,7 +510,7 @@ These are items relevant *only* on OS X. ## Windows only -- Access the power of the Unix shell under Microsoft Windows by installing Cygwin. Most of the things described in this document will work out of the box. +- Access the power of the Unix shell under Microsoft Windows by installing [Cygwin](https://cygwin.com/). Most of the things described in this document will work out of the box. - Install additional Unix programs with the Cygwin's package manager.