Diff
1diff --git a/plugins/droplr/droplr.plugin.zsh b/plugins/droplr/droplr.plugin.zsh
2new file mode 100644
3index 0000000000000000000000000000000000000000..a20ca93689fa9201209b71a5a29d98769b0d4e6c
4--- /dev/null
5+++ b/plugins/droplr/droplr.plugin.zsh
6@@ -0,0 +1,3 @@
7+#!/bin/zsh
8+
9+alias droplr=$ZSH/plugins/droplr/droplr.rb
10diff --git a/plugins/droplr/droplr.rb b/plugins/droplr/droplr.rb
11new file mode 100755
12index 0000000000000000000000000000000000000000..38751dfcb3fa6154ec503a6c87c286d44f7aa2d4
13--- /dev/null
14+++ b/plugins/droplr/droplr.rb
15@@ -0,0 +1,25 @@
16+#!/usr/bin/env ruby
17+#
18+# droplr
19+# Fabio Fernandes | http://fabiofl.me
20+#
21+# Use Droplr from the comand line to upload files and shorten links.
22+#
23+# Examples:
24+#
25+# droplr ./path/to/file/
26+# droplr http://example.com
27+#
28+# This needs Droplr.app to be installed and loged in.
29+# Also, Mac only.
30+
31+if ARGV[0].nil?
32+ puts "You need to specify a parameter."
33+ exit!(1)
34+end
35+
36+if ARGV[0][%r{^http[|s]://}i]
37+ `osascript -e 'tell app "Droplr" to shorten "#{ARGV[0]}"'`
38+else
39+ `open -ga /Applications/Droplr.app "#{ARGV[0]}"`
40+end