Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
5cd7ad38
Commit
5cd7ad38
authored
Oct 17, 2016
by
kennyklee
Committed by
Marc Cornellà
Oct 17, 2016
Browse files
Fix regex for optional http(s), and variable reference inside osascript.
parent
cff228e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/droplr/droplr.plugin.zsh
View file @
5cd7ad38
...
...
@@ -7,8 +7,8 @@ droplr() {
return
1
fi
if
[[
"
$1
"
=
~ ^http
[|s]
://
]]
;
then
osascript
-e
"
tell app
'
Droplr
'
to shorten
'
$1
'"
if
[[
"
$1
"
=
~ ^http
s?
://
]]
;
then
osascript
-e
'
tell app
"
Droplr
"
to shorten
"'
"
$1
"
'"
'
else
open
-ga
/Applications/Droplr.app
"
$1
"
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment