-
-
Save rgieseke/1175639 to your computer and use it in GitHub Desktop.
Textadept loading shell script for OS X
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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