diff options
Diffstat (limited to 'mekhq.sh')
-rw-r--r-- | mekhq.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mekhq.sh b/mekhq.sh new file mode 100644 index 000000000000..d4651ce9922a --- /dev/null +++ b/mekhq.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +conf=$HOME/.config/mekhq + +if [[ -n "$XGD_CONFIG_HOME" ]] +then + conf="$XDG_CONFIG_HOME/mekhq" +fi + +if [[ ! -d "$conf" ]] +then + mkdir -p "$conf" +fi + +if [[ ! -d "$conf/mmconf" ]] +then + cp -af /usr/lib/mekhq/* "$conf/" +fi + +exec env MEGAMEK_CONFPATH="$conf" "$conf/hq.sh" |