Diff
1diff --git a/plugins/textastic/textastic.plugin.zsh b/plugins/textastic/textastic.plugin.zsh
2new file mode 100644
3index 0000000000000000000000000000000000000000..c3416213994f01607ca4395e1071be066a8cdf4a
4--- /dev/null
5+++ b/plugins/textastic/textastic.plugin.zsh
6@@ -0,0 +1,17 @@
7+#
8+# If the tt command is called without an argument, launch Textastic
9+# If tt is passed a directory, cd to it and open it in Textastic
10+# If tt is passed a file, open it in Textastic
11+#
12+function tt() {
13+ if [[ -z $1 ]]
14+ then
15+ open -a "textastic.app"
16+ else
17+ open -a "textastic.app" $1
18+ if [[ -d $1 ]]
19+ then
20+ cd $1
21+ fi
22+ fi
23+}