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

10 lines
369 B
Fish

# Defined in /tmp/fish.pU4dvl/fruitdl.fish @ line 2
function fruitdl
rm -r $argv[2]
set file (curl -sL github.com/$argv[1]-emu/$argv[1]-$argv[2]/releases/latest| grep -om1 $argv[1]-emu/$argv[1]-$argv[2]/releases/download/$argv[2]-[0-9]\*/$argv[1]-linux-[0-9]\*-[0-9a-f]\*).7z
dl http://github.com/$file
set file (basename $file)
7z x $file
rm $file
end