-
-
Save rgieseke/2251990 to your computer and use it in GitHub Desktop.
ta - Command line loader for Textadept
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 | |
# 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