Permalink
Browse files

Merge pull request #15 from osamu2001/master

open command in cygwin.
  • Loading branch information...
2 parents a319017 + 16fbbe5 commit 0be272c4d9d4fffc193128f27715bb533bae24e0 @oscardelben 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 0be272c

Please sign in to comment.