From e20ce81c6663e354f9ef29618e7149800b9a3b26 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Tue, 26 Aug 2014 08:34:17 -0500 Subject: [PATCH 1/9] Adding BBEdit plugin --- plugins/bbedit/bbedit.plugin.zsh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 plugins/bbedit/bbedit.plugin.zsh diff --git a/plugins/bbedit/bbedit.plugin.zsh b/plugins/bbedit/bbedit.plugin.zsh new file mode 100644 index 000000000..6eec10f21 --- /dev/null +++ b/plugins/bbedit/bbedit.plugin.zsh @@ -0,0 +1,21 @@ +alias bbpb='pbpaste | bbedit --clean --view-top' + +alias bbd=bbdiff + +# +# If the bb command is called without an argument, launch BBEdit +# If bb is passed a directory, cd to it and open it in BBEdit +# If bb is passed a file, open it in BBEdit +# +function bb() { + if [[ -z $1 ]] + then + bbedit --launch + else + bbedit $1 + if [[ -d $1 ]] + then + cd $1 + fi + fi +} From 9eb2118c556b81e4eb0965d3e4bc024e35687aba Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Tue, 26 Aug 2014 08:36:16 -0500 Subject: [PATCH 2/9] Adding Marked 2 plugin --- plugins/marked/marked.plugin.zsh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 plugins/marked/marked.plugin.zsh diff --git a/plugins/marked/marked.plugin.zsh b/plugins/marked/marked.plugin.zsh new file mode 100644 index 000000000..8c014372b --- /dev/null +++ b/plugins/marked/marked.plugin.zsh @@ -0,0 +1,12 @@ +# +# If marked is called without an argument, open Marked +# If marked is passed a file, open it in Marked +# +function marked() { + if [ $1 ] + then + open -a "marked 2.app" $1 + else + open -a "marked 2.app" + fi +} From 325c18736e82d0688f7437cefff23910ebd7cedd Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Tue, 26 Aug 2014 08:37:04 -0500 Subject: [PATCH 3/9] Adding Textastic plugin --- plugins/textastic/textastic.plugin.zsh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 plugins/textastic/textastic.plugin.zsh diff --git a/plugins/textastic/textastic.plugin.zsh b/plugins/textastic/textastic.plugin.zsh new file mode 100644 index 000000000..c34162139 --- /dev/null +++ b/plugins/textastic/textastic.plugin.zsh @@ -0,0 +1,17 @@ +# +# If the tt command is called without an argument, launch Textastic +# If tt is passed a directory, cd to it and open it in Textastic +# If tt is passed a file, open it in Textastic +# +function tt() { + if [[ -z $1 ]] + then + open -a "textastic.app" + else + open -a "textastic.app" $1 + if [[ -d $1 ]] + then + cd $1 + fi + fi +} From 362f2a56d276aebfb8da4e3244994f69899bbdbd Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Wed, 27 Aug 2014 08:27:31 -0500 Subject: [PATCH 4/9] Adding quotes around $1 --- plugins/textastic/textastic.plugin.zsh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/textastic/textastic.plugin.zsh b/plugins/textastic/textastic.plugin.zsh index c34162139..f5901eae2 100644 --- a/plugins/textastic/textastic.plugin.zsh +++ b/plugins/textastic/textastic.plugin.zsh @@ -4,14 +4,14 @@ # If tt is passed a file, open it in Textastic # function tt() { - if [[ -z $1 ]] + if [[ -z "$1" ]] then open -a "textastic.app" else - open -a "textastic.app" $1 - if [[ -d $1 ]] + open -a "textastic.app" "$1" + if [[ -d "$1" ]] then - cd $1 + cd "$1" fi fi } From 9be81015d0fcb7864be9cdfe550aeee20c52bf7a Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Wed, 27 Aug 2014 08:31:18 -0500 Subject: [PATCH 5/9] Adding quotes around $1 --- plugins/marked/marked.plugin.zsh | 4 ++-- 1 file 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 From 1b4d4266131eb760fc0cc25aab847a9c08d1c6de Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Wed, 27 Aug 2014 08:34:17 -0500 Subject: [PATCH 6/9] Adding quotes around $1 --- plugins/bbedit/bbedit.plugin.zsh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/bbedit/bbedit.plugin.zsh b/plugins/bbedit/bbedit.plugin.zsh index 6eec10f21..fe9e72c65 100644 --- a/plugins/bbedit/bbedit.plugin.zsh +++ b/plugins/bbedit/bbedit.plugin.zsh @@ -8,14 +8,14 @@ alias bbd=bbdiff # If bb is passed a file, open it in BBEdit # function bb() { - if [[ -z $1 ]] + if [[ -z "$1" ]] then bbedit --launch else - bbedit $1 - if [[ -d $1 ]] + bbedit "$1" + if [[ -d "$1" ]] then - cd $1 + cd "$1" fi fi } From a8dad6fa87867ff2629a55e26f78175635a0ad06 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Sun, 31 Aug 2014 12:55:46 -0500 Subject: [PATCH 7/9] Adding README.md --- plugins/textastic/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 plugins/textastic/README.md diff --git a/plugins/textastic/README.md b/plugins/textastic/README.md new file mode 100644 index 000000000..369c2c137 --- /dev/null +++ b/plugins/textastic/README.md @@ -0,0 +1,15 @@ +## textastic + +Plugin for Textastic, a text and code editor for Mac OS X + +### Requirements + + * [Textastic](http://www.textasticapp.com/mac.html) + +### Usage + + * If `tt` command is called without an argument, launch Textastic + + * If `tt` is passed a directory, cd to it and open it in Textastic + + * If `tt` is passed a file, open it in Textastic From d7f77f818d3f094f42e02554b3c697c0f3d26ed6 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Sun, 31 Aug 2014 12:56:23 -0500 Subject: [PATCH 8/9] Adding README.md --- plugins/bbedit/README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 plugins/bbedit/README.md diff --git a/plugins/bbedit/README.md b/plugins/bbedit/README.md new file mode 100644 index 000000000..ec2b743d6 --- /dev/null +++ b/plugins/bbedit/README.md @@ -0,0 +1,20 @@ +## bbedit + +Plugin for BBEdit, an HTML and text editor for Mac OS X + +### Requirements + + * [BBEdit](http://www.barebones.com/products/bbedit/) + * [BBEdit Command-Line Tools](http://www.barebones.com/support/bbedit/cmd-line-tools.html) + +### Usage + + * If the `bb` command is called without an argument, launch BBEdit + + * If `bb` is passed a directory, cd to it and open it in BBEdit + + * If `bb` is passed a file, open it in BBEdit + + * If `bbpb` create a new BBEdit document with the contents of the clipboard + + * If `bbd` alias for BBEdit diff tool From 9bf5b90c81ce2cbde321c3d6d97d5ff6d561b83c Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Sun, 31 Aug 2014 12:57:58 -0500 Subject: [PATCH 9/9] Adding README.md and renaming plugin --- plugins/marked2/README.md | 13 +++++++++++++ .../marked2.plugin.zsh} | 0 2 files changed, 13 insertions(+) create mode 100644 plugins/marked2/README.md rename plugins/{marked/marked.plugin.zsh => marked2/marked2.plugin.zsh} (100%) diff --git a/plugins/marked2/README.md b/plugins/marked2/README.md new file mode 100644 index 000000000..101343abb --- /dev/null +++ b/plugins/marked2/README.md @@ -0,0 +1,13 @@ +## marked2 + +Plugin for Marked 2, a previewer for Markdown files on Mac OS X + +### Requirements + + * [Marked 2](http://marked2app.com) + +### Usage + + * If `marked` is called without an argument, open Marked + + * If `marked` is passed a file, open it in Marked diff --git a/plugins/marked/marked.plugin.zsh b/plugins/marked2/marked2.plugin.zsh similarity index 100% rename from plugins/marked/marked.plugin.zsh rename to plugins/marked2/marked2.plugin.zsh