1
0
Fork 0
oh-my-zsh/plugins/droplr/droplr.rb

12 lines
246 B
Ruby
Raw Normal View History

2013-07-13 05:27:37 -03:00
#!/usr/bin/env ruby
if ARGV[0].nil?
puts "You need to specify a parameter."
exit!(1)
end
if ARGV[0][%r{^http[|s]://}i]
`osascript -e 'tell app "Droplr" to shorten "#{ARGV[0]}"'`
else
`open -ga /Applications/Droplr.app "#{ARGV[0]}"`
2016-09-02 20:25:28 +02:00
end