aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap.lua
diff options
context:
space:
mode:
authorSquibid <me@zacharyscheiman.com>2023-07-28 19:23:26 -0400
committerSquibid <me@zacharyscheiman.com>2023-07-28 19:23:26 -0400
commitaf125691f7920c3d61d127a261298b38fce1ca30 (patch)
treeefc7ff7db01236c4b1b7ea1d41336aed4a07617d /bootstrap.lua
parent80de336bdbb7194ad4e2d5475d76b25f01c2cdcd (diff)
downloadeat-it-af125691f7920c3d61d127a261298b38fce1ca30.tar.gz
eat-it-af125691f7920c3d61d127a261298b38fce1ca30.tar.bz2
eat-it-af125691f7920c3d61d127a261298b38fce1ca30.zip
add bootstrap script and better instructions for installation
Diffstat (limited to 'bootstrap.lua')
-rw-r--r--bootstrap.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/bootstrap.lua b/bootstrap.lua
new file mode 100644
index 0000000..89b62fb
--- /dev/null
+++ b/bootstrap.lua
@@ -0,0 +1,8 @@
+os.execute('git clone https://git.squi.bid/eat-it /tmp/eatit-tmp')
+local a = io.open('/tmp/eatit-tmp/eatit.lua', 'r')
+local b = io.open(mp.command_native({'expand-path', '~~/scripts/eatit.lua'}), 'w')
+b:write(a:read('*a'))
+b:close()
+a:close()
+dofile(mp.command_native({'expand-path', '~~/scripts/eatit.lua'}))
+os.execute('rm -rf /tmp/eatit-tmp')