summarylogtreecommitdiffstats
path: root/mekhq.sh
diff options
context:
space:
mode:
authordangersalad2018-06-16 11:58:53 -0600
committerdangersalad2018-06-16 11:59:10 -0600
commit806dc6b81ca9c122c94998969683b22b28004c0e (patch)
tree06bcee94e454dd4239bfdb55901a602e6824386f /mekhq.sh
downloadaur-806dc6b81ca9c122c94998969683b22b28004c0e.tar.gz
init
Diffstat (limited to 'mekhq.sh')
-rw-r--r--mekhq.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/mekhq.sh b/mekhq.sh
new file mode 100644
index 00000000000..d4651ce9922
--- /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"