aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/osx/ta
blob: d9f9048781c02b6046a48fd4ce0e812c4374ed04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
# Copyright 2007-2015 Mitchell mitchell.att.foicica.com. See LICENSE.

if [[ "$1" == "-h" || "$1" == "--help" ]]; then
  echo "ta - shell script to launch Textadept.app"
  echo "Usage:"
  echo "ta [filenames]         open the given filenames in Textadept"
  echo "ta [args] [filenames]  open the given filenames in a new instance of"
  echo "                       Textadept with the given arguments"
elif [ "${1:0:1}" == "-" ]; then
  open -n -a Textadept.app --args $@
else
  open -a Textadept.app $@
fi