summaryrefslogtreecommitdiff
path: root/context/data/textadept/context/textadept-context.sh
blob: 5f613ccf8cd5d5d5445d6349f2e92ea0ece7f825 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# copied from setuptex

if [ z"$BASH_SOURCE" != z ]; then
    textadept -u $(cd -P -- "$(dirname -- "$BASH_SOURCE")" && pwd -P) "$@" &
elif [ z"$KSH_VERSION" != z ]; then
    textadept -u $(cd -P -- "$(dirname -- "${.sh.file}")" && pwd -P) "$@" &
else
    textadept -u $(cd -P -- "$(dirname -- "$0")" && pwd -P) "$@" &
fi