mirror of
https://github.com/Phantop/dotfiles
synced 2025-11-29 15:55:48 +00:00
Fish: Make Minecraft also make Qute functions
This commit is contained in:
parent
ba7f0ff9bd
commit
780480d577
|
|
@ -1,7 +1,7 @@
|
||||||
# PATHS #
|
# PATHS #
|
||||||
set -gx ANDROID_HOME $D/Installs/Android/sdk
|
set -gx ANDROID_HOME $D/Installs/Android/sdk
|
||||||
set 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
|
set fish_function_path $D/Games/Minecraft/Game/functions $fish_function_path
|
||||||
|
|
||||||
# PROGRAM SETTINGS #
|
# PROGRAM SETTINGS #
|
||||||
set -gx EDITOR nvim
|
set -gx EDITOR nvim
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,15 @@
|
||||||
# Defined in /tmp/fish.pQxchw/minecraft.fish @ line 2
|
# Defined in /tmp/fish.8eD7b7/minecraft.fish @ line 2
|
||||||
function minecraft
|
function minecraft
|
||||||
cd $D/Games/Minecraft/Game
|
cd $D/Games/Minecraft/Game
|
||||||
rm (ff -e log)
|
rm (ff -e log)
|
||||||
bin/MultiMC -d . $argv
|
bin/MultiMC -d . $argv
|
||||||
|
rm functions/*
|
||||||
for i in (ls -d instances/*/ | grep -v _MMC_TEMP | xargs -n1 basename)
|
for i in (ls -d instances/*/ | grep -v _MMC_TEMP | xargs -n1 basename)
|
||||||
echo "function $i
|
echo > functions/$i.fish "function $i
|
||||||
minecraft -l $i
|
minecraft -l $i; end"
|
||||||
end" > function/$i.fish
|
end
|
||||||
|
for i in (cat ~/.config/qutebrowser/quickmarks)
|
||||||
|
echo > functions/(echo $i| awk '{print $1;}').fish function (echo $i| awk '{print $1;}') -V "i
|
||||||
|
qb (echo \"$i\"| cut -d ' ' -f2); end"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue