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
Raw Normal View History

2019-10-07 19:33:07 +00:00
# Defined in /tmp/fish.pU4dvl/fruitdl.fish @ line 2
2018-11-15 01:01:37 +00:00
function fruitdl
2019-10-07 19:33:07 +00:00
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
2019-04-08 03:03:58 +00:00
dl http://github.com/$file
set file (basename $file)
7z x $file
rm $file
2018-11-15 01:01:37 +00:00
end