69088270357ab203cfafa23a87ee7a177a6bbd2f

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge branch 'master' of github.com:robbyrussell/oh-my-zsh

Diff

  1diff --git a/plugins/bbedit/README.md b/plugins/bbedit/README.md
  2new file mode 100644
  3index 0000000000000000000000000000000000000000..ec2b743d6a29bebc1bb5bec6d195ed90d0f74ccf
  4--- /dev/null
  5+++ b/plugins/bbedit/README.md
  6@@ -0,0 +1,20 @@
  7+## bbedit
  8+
  9+Plugin for BBEdit, an HTML and text editor for Mac OS X 
 10+
 11+### Requirements
 12+
 13+ * [BBEdit](http://www.barebones.com/products/bbedit/)
 14+ * [BBEdit Command-Line Tools](http://www.barebones.com/support/bbedit/cmd-line-tools.html)
 15+
 16+### Usage
 17+
 18+ * If the `bb` command is called without an argument, launch BBEdit
 19+
 20+ * If `bb` is passed a directory, cd to it and open it in BBEdit
 21+
 22+ * If `bb` is passed a file, open it in BBEdit
 23+
 24+ * If `bbpb` create a new BBEdit document with the contents of the clipboard
 25+
 26+ * If `bbd` alias for BBEdit diff tool
 27diff --git a/plugins/bbedit/bbedit.plugin.zsh b/plugins/bbedit/bbedit.plugin.zsh
 28new file mode 100644
 29index 0000000000000000000000000000000000000000..fe9e72c6567946c00ee172d188574873f9c5014d
 30--- /dev/null
 31+++ b/plugins/bbedit/bbedit.plugin.zsh
 32@@ -0,0 +1,21 @@
 33+alias bbpb='pbpaste | bbedit --clean --view-top'
 34+
 35+alias bbd=bbdiff
 36+
 37+#
 38+# If the bb command is called without an argument, launch BBEdit
 39+# If bb is passed a directory, cd to it and open it in BBEdit
 40+# If bb is passed a file, open it in BBEdit
 41+#
 42+function bb() {
 43+    if [[ -z "$1" ]]
 44+    then
 45+        bbedit --launch
 46+    else
 47+        bbedit "$1"
 48+        if [[ -d "$1" ]]
 49+        then
 50+            cd "$1"
 51+        fi
 52+    fi
 53+}
 54diff --git a/plugins/marked2/README.md b/plugins/marked2/README.md
 55new file mode 100644
 56index 0000000000000000000000000000000000000000..101343abbae62c7bf0975c251119b1eb847bee6e
 57--- /dev/null
 58+++ b/plugins/marked2/README.md
 59@@ -0,0 +1,13 @@
 60+## marked2
 61+
 62+Plugin for Marked 2, a previewer for Markdown files on Mac OS X 
 63+
 64+### Requirements
 65+
 66+ * [Marked 2](http://marked2app.com)
 67+
 68+### Usage
 69+
 70+ * If `marked` is called without an argument, open Marked
 71+
 72+ * If `marked` is passed a file, open it in Marked
 73diff --git a/plugins/marked2/marked2.plugin.zsh b/plugins/marked2/marked2.plugin.zsh
 74new file mode 100644
 75index 0000000000000000000000000000000000000000..56863ade57dd34a7fb3158d369e8b36860349ea5
 76--- /dev/null
 77+++ b/plugins/marked2/marked2.plugin.zsh
 78@@ -0,0 +1,12 @@
 79+#
 80+# If marked is called without an argument, open Marked
 81+# If marked is passed a file, open it in Marked
 82+#
 83+function marked() {
 84+    if [ "$1" ]
 85+    then
 86+        open -a "marked 2.app" "$1"
 87+    else
 88+        open -a "marked 2.app"
 89+    fi
 90+}
 91diff --git a/plugins/textastic/README.md b/plugins/textastic/README.md
 92new file mode 100644
 93index 0000000000000000000000000000000000000000..369c2c137d4435cd274ad2c02cb1c4228191f03f
 94--- /dev/null
 95+++ b/plugins/textastic/README.md
 96@@ -0,0 +1,15 @@
 97+## textastic
 98+
 99+Plugin for Textastic, a text and code editor for Mac OS X 
100+
101+### Requirements
102+
103+ * [Textastic](http://www.textasticapp.com/mac.html)
104+
105+### Usage
106+
107+ * If `tt` command is called without an argument, launch Textastic
108+
109+ * If `tt` is passed a directory, cd to it and open it in Textastic
110+
111+ * If `tt` is passed a file, open it in Textastic
112diff --git a/plugins/textastic/textastic.plugin.zsh b/plugins/textastic/textastic.plugin.zsh
113new file mode 100644
114index 0000000000000000000000000000000000000000..f5901eae2fcfcaa6fdb460b2a9e6c11c29f2f538
115--- /dev/null
116+++ b/plugins/textastic/textastic.plugin.zsh
117@@ -0,0 +1,17 @@
118+#
119+# If the tt command is called without an argument, launch Textastic
120+# If tt is passed a directory, cd to it and open it in Textastic
121+# If tt is passed a file, open it in Textastic
122+#
123+function tt() {
124+    if [[ -z "$1" ]]
125+    then
126+        open -a "textastic.app"
127+    else
128+        open -a "textastic.app" "$1"
129+        if [[ -d "$1" ]]
130+        then
131+            cd "$1"
132+        fi
133+    fi
134+}