aboutsummaryrefslogtreecommitdiff
path: root/scripts/osx/ta
blob: 9b2d8f43a03bcb88de300b45049442e088c7bda1 (plain)
1
2
3
4
5
6
7
8
9
10
11
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