1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-19 13:22:51 +00:00
dotfiles/.local/bin/minecraft
2020-11-24 08:04:23 -05:00

16 lines
383 B
Bash
Executable file

#!/bin/sh
cd $D/Games/Minecraft
rm `fd -e log`
bin/MultiMC -d . $@
rm functions/*
for i in `ls -d instances/*/ | grep -v _MMC_TEMP | xargs -n1 basename`
do
echo > functions/$i.fish "function $i
minecraft -l $i; end"
done
for i in `cat ~/.config/qutebrowser/quickmarks | cut -d ' ' -f1`
do
echo > functions/$i.fish function $i"
qb / \":quickmark-load $i\"; end"
done