864887388758b615d15a3f30a461aff1a7711d0b

Author
Marc Cornellà <marc.cornella@live.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

Add Droplr README

Diff

 1diff --git a/plugins/droplr/README.md b/plugins/droplr/README.md
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..cfbec25edaa372e4342fc3c30e22923ff0297930
 4--- /dev/null
 5+++ b/plugins/droplr/README.md
 6@@ -0,0 +1,19 @@
 7+# droplr
 8+
 9+Use [Droplr](https://droplr.com/) from the comand line to upload files and shorten
10+links. It needs to have [Droplr.app](https://droplr.com/apps) installed and logged
11+in. MacOS only.
12+
13+To use it, add `droplr` to the `$plugins` variable in your zshrc file:
14+
15+```zsh
16+plugins=(... droplr)
17+```
18+
19+Author: [Fabio Fernandes](https://github.com/fabiofl)
20+
21+## Examples
22+
23+- Upload a file: `droplr ./path/to/file/`
24+
25+- Shorten a link: `droplr http://example.com`
26diff --git a/plugins/droplr/droplr.plugin.zsh b/plugins/droplr/droplr.plugin.zsh
27index a20ca93689fa9201209b71a5a29d98769b0d4e6c..2a2ec227c288df296476479d3329049bccca33f1 100644
28--- a/plugins/droplr/droplr.plugin.zsh
29+++ b/plugins/droplr/droplr.plugin.zsh
30@@ -1,3 +1 @@
31-#!/bin/zsh
32-
33-alias droplr=$ZSH/plugins/droplr/droplr.rb
34+alias droplr=$ZSH/plugins/droplr/droplr.rb
35diff --git a/plugins/droplr/droplr.rb b/plugins/droplr/droplr.rb
36index 38751dfcb3fa6154ec503a6c87c286d44f7aa2d4..00300198e1a0ae85a36e4cb682684fe2329e41d2 100755
37--- a/plugins/droplr/droplr.rb
38+++ b/plugins/droplr/droplr.rb
39@@ -1,17 +1,4 @@
40 #!/usr/bin/env ruby
41-#
42-# droplr
43-# Fabio Fernandes | http://fabiofl.me
44-#
45-# Use Droplr from the comand line to upload files and shorten links.
46-#
47-# Examples:
48-# 
49-# droplr ./path/to/file/
50-# droplr http://example.com
51-#
52-# This needs Droplr.app to be installed and loged in.
53-# Also, Mac only.
54 
55 if ARGV[0].nil?
56    puts "You need to specify a parameter."
57@@ -22,4 +9,4 @@ if ARGV[0][%r{^http[|s]://}i]
58 	`osascript -e 'tell app "Droplr" to shorten "#{ARGV[0]}"'`
59 else
60 	`open -ga /Applications/Droplr.app "#{ARGV[0]}"`
61-end
62+end