Permalink
Browse files

Add open command for cygwin

  • Loading branch information...
1 parent a319017 commit 16fbbe5dd8c6ce1dfcfa1aa2e0d70ea5dc1a4f22 @osamu2001 osamu2001 committed Aug 7, 2012
Showing with 4 additions and 1 deletion.
  1. +2 −1 README.md
  2. +2 −0 lib/sheet.rb
View
@@ -47,7 +47,8 @@ url: http://example.com
```
Please note that to open urls, sheet will use the `open` command on mac
-os x and `xdg-open` in linux. Patches welcome for other systems.
+os x and `xdg-open` in linux and `cygstart` in cygwin. Patches welcome
+for other systems.
### Copying sheets
View
@@ -65,6 +65,8 @@ def open_command
'open'
elsif RUBY_PLATFORM =~ /linux/ && command_available?('xdg-open')
'xdg-open'
+ elsif RUBY_PLATFORM =~ /cygwin/
+ 'cygstart'
else
nil
end

0 comments on commit 16fbbe5

Please sign in to comment.