28 lines
619 B
Plaintext
28 lines
619 B
Plaintext
|
#!/usr/bin/env fish
|
||
|
|
||
|
function vm-macemu -d "Frontend to SheepShaver and BasiliskII" -a arch cfg
|
||
|
switch "$arch"
|
||
|
case m68k
|
||
|
set config ~/.basilisk_ii_prefs
|
||
|
set executable BasiliskII
|
||
|
case ppc
|
||
|
set config ~/.sheepshaver_prefs
|
||
|
set executable SheepShaver
|
||
|
end
|
||
|
|
||
|
touch $config
|
||
|
chmod u+w $config
|
||
|
|
||
|
cat $_agw_dir_rc/virtual-machines/MacEmu/common > $config
|
||
|
cat $_agw_dir_rc/virtual-machines/MacEmu/common-$arch >> $config
|
||
|
cat $_agw_dir_rc/virtual-machines/MacEmu/$cfg >> $config
|
||
|
|
||
|
chmod -w $config
|
||
|
|
||
|
$executable
|
||
|
end
|
||
|
|
||
|
complete -c vm-macemu -xa "(ls $_agw_dir_rc/virtual-machines/MacEmu)"
|
||
|
|
||
|
## EOF
|