1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-10 00:45:32 +00:00
dotfiles/.config/fish/functions/minecraft.fish

24 lines
738 B
Fish
Raw Normal View History

2020-04-11 16:19:52 +00:00
# Defined in /tmp/fish.STnBun/minecraft.fish @ line 2
function minecraft
cd $D/Games/Minecraft/Game
rm (ff -e log)
2020-04-11 16:19:52 +00:00
if not which java
gnome-disk-image-mounter $D/Installs/squash/java
if not pgrep caja
caja & sleep 1
kj
2020-01-24 20:00:56 +00:00
end
end
2020-04-11 16:19:52 +00:00
set -x PATH /run/media/$USER/disk*/bin $PATH
bin/MultiMC -d . $argv
rm functions/*
for i in (ls -d instances/*/ | grep -v _MMC_TEMP | xargs -n1 basename)
echo > functions/$i.fish "function $i
minecraft -l $i; end"
end
2019-05-15 20:22:32 +00:00
for i in (cat ~/.config/qutebrowser/quickmarks | cut -d ' ' -f1)
echo > functions/$i.fish function $i"
qb / \":quickmark-load $i\"; end"
end
2018-11-15 01:01:37 +00:00
end