random scripts I use
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
619 B

#!/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
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
complete -c vm-macemu -xa "(ls $_agw_dir_rc/virtual-machines/MacEmu)"
## EOF