Merge branch 'master' of github.com:mitur/oh-my-zsh

This commit is contained in:
Niclas Rosengren 2016-10-21 19:34:40 +02:00
commit 677280f16d
5 changed files with 36 additions and 29 deletions

View file

@ -7,8 +7,8 @@ droplr() {
return 1
fi
if [[ "$1" =~ ^http[|s]:// ]]; then
osascript -e "tell app 'Droplr' to shorten '$1'"
if [[ "$1" =~ ^https?:// ]]; then
osascript -e 'tell app "Droplr" to shorten "'"$1"'"'
else
open -ga /Applications/Droplr.app "$1"
fi