diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/osx/ta | 6 | ||||
-rwxr-xr-x | scripts/osx/textadept_osx | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/scripts/osx/ta b/scripts/osx/ta index 9b2d8f43..8cf9f28f 100755 --- a/scripts/osx/ta +++ b/scripts/osx/ta @@ -3,8 +3,10 @@ if [[ "$1" == "-h" || "$1" == "--help" ]]; then echo "ta - shell script to launch Textadept.app" - echo "Usage: ta [args] [filenames]" - echo "Run textadept --help for available args." + echo "Usage:" + echo "ta [filenames] open the given filenames in Textadept" + echo "ta [args] [filenames] open the given filenames in a new instance of" + echo " Textadept with the given arguments" elif [ "${1:0:1}" == "-" ]; then open -n -a Textadept.app --args $@ else diff --git a/scripts/osx/textadept_osx b/scripts/osx/textadept_osx index d0382fa4..f04497e4 100755 --- a/scripts/osx/textadept_osx +++ b/scripts/osx/textadept_osx @@ -18,6 +18,10 @@ export CHARSETALIASDIR="$bundle_res/lib" # Strip out the argument added by OSX. if [ x`echo "x$1" | sed -e "s/^x-psn_.*//"` == x ]; then shift 1; fi +# Source '~/.textadept/osx_env.sh' to set variables like $PATH when opening +# Textadept.app from the Dock or the Finder. +if [ -f $HOME/.textadept/osx_env.sh ]; then . $HOME/.textadept/osx_env.sh; fi + # Run Textadept. textadept=textadept if [ ! -z $TEXTADEPTJIT ]; then textadept=textadeptjit; fi |