summaryrefslogtreecommitdiff
path: root/context/data/textadept/context/textadept-context.sh
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2017-04-08 12:28:54 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2017-04-08 12:28:54 +0200
commitea2466fe69bd082d379e95e1567f3de0b76de243 (patch)
tree70f1bdcf7d402f2ae013caebf5f4cef5f6c2baed /context/data/textadept/context/textadept-context.sh
parente32f57c9c5968f0c09130f6e24e28a96d6e1393d (diff)
downloadcontext-ea2466fe69bd082d379e95e1567f3de0b76de243.tar.gz
2017-04-08 12:15:00
Diffstat (limited to 'context/data/textadept/context/textadept-context.sh')
-rw-r--r--context/data/textadept/context/textadept-context.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/context/data/textadept/context/textadept-context.sh b/context/data/textadept/context/textadept-context.sh
new file mode 100644
index 000000000..5f613ccf8
--- /dev/null
+++ b/context/data/textadept/context/textadept-context.sh
@@ -0,0 +1,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
+