diff options
author | 2013-11-20 22:12:31 -0500 | |
---|---|---|
committer | 2013-11-20 22:12:31 -0500 | |
commit | 408d71259bbd5bad7f1aa9a232904038f623598b (patch) | |
tree | b51c066ea0154057943397a7da11e0115b18838d /scripts/osx/textadept_osx | |
parent | d7b41ac77673a9205ba909aea524f267bf159e87 (diff) | |
download | textadept-408d71259bbd5bad7f1aa9a232904038f623598b.tar.gz textadept-408d71259bbd5bad7f1aa9a232904038f623598b.zip |
Look for `~/.textadept/osx_env.sh` for OSX environment variables.
Also clarified `ta` launcher since `--help` is unavailable.
Diffstat (limited to 'scripts/osx/textadept_osx')
-rwxr-xr-x | scripts/osx/textadept_osx | 4 |
1 files changed, 4 insertions, 0 deletions
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 |