Files
src/toki/toki_common
T
2023-09-02 10:41:21 -04:00

13 lines
342 B
Bash
Executable File

#!/bin/sh
# this could potentially leave a user with two jasima.json files post config
# change but that's fine
if test -z "$JASIMA"
then test -n "$XDG_CONFIG_HOME" \
&& JASIMA="$XDG_CONFIG_HOME"/tokipona/jasima.json \
|| JASIMA="$HOME"/.tokipona/jasima.json
fi
test -n "$JASIMA_URL" \
|| JASIMA_URL=https://linku.la/jasima/data.json