aboutsummaryrefslogtreecommitdiff
path: root/scripts/osx/ta
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/osx/ta')
-rwxr-xr-xscripts/osx/ta12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/osx/ta b/scripts/osx/ta
new file mode 100755
index 00000000..9b2d8f43
--- /dev/null
+++ b/scripts/osx/ta
@@ -0,0 +1,12 @@
+#!/bin/bash
+# Copyright 2007-2013 Mitchell mitchell.att.foicica.com. See LICENSE.
+
+if [[ "$1" == "-h" || "$1" == "--help" ]]; then
+ echo "ta - shell script to launch Textadept.app"
+ echo "Usage: ta [args] [filenames]"
+ echo "Run textadept --help for available args."
+elif [ "${1:0:1}" == "-" ]; then
+ open -n -a Textadept.app --args $@
+else
+ open -a Textadept.app $@
+fi