summaryrefslogtreecommitdiff
path: root/plugins/droplr/droplr.plugin.zsh
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2016-10-29 19:14:13 -0600
committerTuowen Zhao <ztuowen@gmail.com>2016-10-29 19:14:13 -0600
commitc24de867a4d036af486fdaa77b0fcccb148e2b98 (patch)
tree040e3e553c884b06f093af5ca9476c1a1edfed77 /plugins/droplr/droplr.plugin.zsh
parenta16fe1511ccf698432b7bbaccf250a7739ed2a92 (diff)
parent0ee89d965ecaa4f32cf2d1039e9d84a73eb206cf (diff)
downloadzsh-c24de867a4d036af486fdaa77b0fcccb148e2b98.tar.gz
zsh-c24de867a4d036af486fdaa77b0fcccb148e2b98.tar.bz2
zsh-c24de867a4d036af486fdaa77b0fcccb148e2b98.zip
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'plugins/droplr/droplr.plugin.zsh')
-rw-r--r--plugins/droplr/droplr.plugin.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/droplr/droplr.plugin.zsh b/plugins/droplr/droplr.plugin.zsh
index 296a8b98b..af0a21299 100644
--- a/plugins/droplr/droplr.plugin.zsh
+++ b/plugins/droplr/droplr.plugin.zsh
@@ -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