mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-09-24 17:00:47 +00:00
12 lines
246 B
Ruby
Executable file
12 lines
246 B
Ruby
Executable file
#!/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]}"`
|
|
end
|