Skip to content

Instantly share code, notes, and snippets.

@rgieseke rgieseke/ta
Created Aug 27, 2011

Embed
What would you like to do?
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
You can’t perform that action at this time.