blob: bee51b7d0f9afea4ea977da9084aed090e5221ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/bin/sh
set -eu
root='/opt/taskers'
cmd="$(basename "$0")"
case "$cmd" in
taskers)
export TASKERS_CTL_PATH="$root/bin/taskersctl"
export TASKERS_GHOSTTY_RUNTIME_DIR="$root/ghostty"
export GHOSTTY_RESOURCES_DIR="$root/ghostty"
export TERMINFO="$root/terminfo"
export TASKERS_DISABLE_GHOSTTY_RUNTIME_BOOTSTRAP=1
exec "$root/bin/taskers" "$@"
;;
taskersctl)
exec "$root/bin/taskersctl" "$@"
;;
taskers-terminald)
export TASKERS_GHOSTTY_RUNTIME_DIR="$root/ghostty"
export GHOSTTY_RESOURCES_DIR="$root/ghostty"
export TERMINFO="$root/terminfo"
export TASKERS_DISABLE_GHOSTTY_RUNTIME_BOOTSTRAP=1
exec "$root/bin/taskers-terminald" "$@"
;;
*)
printf 'unknown Taskers entrypoint: %s\n' "$cmd" >&2
exit 1
;;
esac
|