Skip to content

Instantly share code, notes, and snippets.

@rgieseke
Created March 30, 2012 14:38
Show Gist options
  • Save rgieseke/2251990 to your computer and use it in GitHub Desktop.
Save rgieseke/2251990 to your computer and use it in GitHub Desktop.
ta - Command line loader for Textadept
#!/bin/bash
# Put this script somewhere on your path to start or switch to Textadept from
# the command line.
if [[ "$1" == "-h" || "$1" == "--help" ]]; then
echo "ta - shell script to load Textadept.app"
echo "Example usage"
echo "ta : start or switch to Textadept"
echo "ta [file(s)] : open file(s) in Textadept"
echo "ta -u [folder] : opens a new Textadept instance with the given user home"
elif [ "${1:0:1}" == "-" ]; then
open -n -a Textadept.app --args $@
else
open -a Textadept.app $@
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment