summarylogtreecommitdiffstats
path: root/megameklab.sh
diff options
context:
space:
mode:
Diffstat (limited to 'megameklab.sh')
-rw-r--r--megameklab.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/megameklab.sh b/megameklab.sh
new file mode 100644
index 000000000000..593a9c897fcc
--- /dev/null
+++ b/megameklab.sh
@@ -0,0 +1,19 @@
+#!/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
+
+rsync -avc /usr/lib/mekhq/ "$conf/"
+
+cd "$conf"
+
+exec env MEGAMEK_CONFPATH="$conf" "$conf/lab"