9eb2118c556b81e4eb0965d3e4bc024e35687aba

Author
Chris Smith <csmith@bloomhealthco.com>
Committer
Chris Smith <csmith@bloomhealthco.com>
Date

Message

Adding Marked 2 plugin

Diff

 1diff --git a/plugins/marked/marked.plugin.zsh b/plugins/marked/marked.plugin.zsh
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..8c014372ba8d38410790bdfd2ef948c077edc33b
 4--- /dev/null
 5+++ b/plugins/marked/marked.plugin.zsh
 6@@ -0,0 +1,12 @@
 7+#
 8+# If marked is called without an argument, open Marked
 9+# If marked is passed a file, open it in Marked
10+#
11+function marked() {
12+    if [ $1 ]
13+    then
14+        open -a "marked 2.app" $1
15+    else
16+        open -a "marked 2.app"
17+    fi
18+}