summaryrefslogtreecommitdiff
path: root/plugins/droplr
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/droplr')
-rw-r--r--plugins/droplr/README.md4
-rw-r--r--plugins/droplr/droplr.plugin.zsh4
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/droplr/README.md b/plugins/droplr/README.md
index cfbec25ed..6daa2540d 100644
--- a/plugins/droplr/README.md
+++ b/plugins/droplr/README.md
@@ -1,6 +1,6 @@
# droplr
-Use [Droplr](https://droplr.com/) from the comand line to upload files and shorten
+Use [Droplr](https://droplr.com/) from the command line to upload files and shorten
links. It needs to have [Droplr.app](https://droplr.com/apps) installed and logged
in. MacOS only.
@@ -16,4 +16,4 @@ Author: [Fabio Fernandes](https://github.com/fabiofl)
- Upload a file: `droplr ./path/to/file/`
-- Shorten a link: `droplr http://example.com`
+- Shorten a link: `droplr https://example.com`
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