Skip to content

Instantly share code, notes, and snippets.

@t-mw
Created January 26, 2018 18:36
Show Gist options
  • Save t-mw/235624ac61750f69443959816958c310 to your computer and use it in GitHub Desktop.
Save t-mw/235624ac61750f69443959816958c310 to your computer and use it in GitHub Desktop.
pico-8 live reload
while sleep 1; do
file='test';
lead='__lua__';
tail='__gfx__';
gsed -i -e "/$lead/,/$tail/{ /$lead/{p; r $file.lua
}; /$tail/p; d }" $file.p8;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment