From 14a4bfba2aefe97ba59ce14834b104781f9c6cb7 Mon Sep 17 00:00:00 2001 From: Phantop Date: Sun, 5 May 2019 12:32:40 -0400 Subject: [PATCH] Fish: add back MultiMC instance functions --- .config/fish/config.fish | 3 ++- .config/fish/functions/minecraft.fish | 10 +++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 207ef4b..b5a5000 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -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 diff --git a/.config/fish/functions/minecraft.fish b/.config/fish/functions/minecraft.fish index c3953ca..95be14b 100644 --- a/.config/fish/functions/minecraft.fish +++ b/.config/fish/functions/minecraft.fish @@ -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