Skip to content

Instantly share code, notes, and snippets.

@rgieseke
Created August 27, 2011 17:38
Show Gist options
  • Save rgieseke/1175639 to your computer and use it in GitHub Desktop.
Save rgieseke/1175639 to your computer and use it in GitHub Desktop.
Textadept loading shell script for OS X
#!/bin/bash
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"
echo "ta -n [session] : opens a new Textadept instance with the given session"
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