summaryrefslogtreecommitdiff
path: root/plugins/marked/marked.plugin.zsh
diff options
context:
space:
mode:
authorChris Smith <csmith@bloomhealthco.com>2014-08-27 08:31:18 -0500
committerChris Smith <csmith@bloomhealthco.com>2014-08-27 08:31:18 -0500
commit9be81015d0fcb7864be9cdfe550aeee20c52bf7a (patch)
tree5d618647bbf47b9baa3770710b070346b8820d65 /plugins/marked/marked.plugin.zsh
parent9eb2118c556b81e4eb0965d3e4bc024e35687aba (diff)
downloadzsh-9be81015d0fcb7864be9cdfe550aeee20c52bf7a.tar.gz
zsh-9be81015d0fcb7864be9cdfe550aeee20c52bf7a.tar.bz2
zsh-9be81015d0fcb7864be9cdfe550aeee20c52bf7a.zip
Adding quotes around $1
Diffstat (limited to 'plugins/marked/marked.plugin.zsh')
-rw-r--r--plugins/marked/marked.plugin.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/marked/marked.plugin.zsh b/plugins/marked/marked.plugin.zsh
index 8c014372b..56863ade5 100644
--- a/plugins/marked/marked.plugin.zsh
+++ b/plugins/marked/marked.plugin.zsh
@@ -3,9 +3,9 @@
# If marked is passed a file, open it in Marked
#
function marked() {
- if [ $1 ]
+ if [ "$1" ]
then
- open -a "marked 2.app" $1
+ open -a "marked 2.app" "$1"
else
open -a "marked 2.app"
fi