1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 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/hq"