mirror of
https://github.com/Phantop/dotfiles
synced 2024-11-04 22:14:21 +00:00
11 lines
422 B
Fish
Executable file
11 lines
422 B
Fish
Executable file
# Defined in /tmp/fish.VXbo9N/fruitdl.fish @ line 2
|
|
function fruitdl
|
|
cd $D/Games/Emulators/$argv[2]
|
|
rm -r $argv[1]
|
|
set file (curl -sL github.com/$argv[2]-emu/$argv[2]-$argv[1]/releases/latest| grep -o -m1 $argv[2]-emu/$argv[2]-$argv[1]/releases/download/$argv[1]-[0-9]\*/$argv[2]-linux-[0-9]\*-[0-9a-f]\*)
|
|
dl http://github.com/$file.7z
|
|
set file (basename $file)
|
|
7z x $file.7z
|
|
rm $file.7z
|
|
end
|