1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-28 09:33:30 +00:00

Fish: add back MultiMC instance functions

This commit is contained in:
Phantop 2019-05-05 12:32:40 -04:00
parent 6da3bdc97c
commit 14a4bfba2a
2 changed files with 11 additions and 2 deletions

View file

@ -1,6 +1,7 @@
# PATHS #
set -gx ANDROID_HOME $D/Installs/Android/sdk
set -gx fish_user_paths $D/Tools $ANDROID_HOME/platform-tools /sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin
set fish_user_paths $D/Tools $ANDROID_HOME/platform-tools /sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin
set fish_function_path $D/Games/Minecraft/Game/function $fish_function_path
# PROGRAM SETTINGS #
set -gx EDITOR nvim

View file

@ -1,3 +1,11 @@
# Defined in /tmp/fish.pQxchw/minecraft.fish @ line 2
function minecraft
cd $D/Games/Minecraft/Game; rm (ff -e log); bin/MultiMC -d . $argv
cd $D/Games/Minecraft/Game
rm (ff -e log)
bin/MultiMC -d . $argv
for i in (ls -d instances/*/ | grep -v _MMC_TEMP | xargs -n1 basename)
echo "function $i
minecraft -l $i
end" > function/$i.fish
end
end