mirror of
https://github.com/TangentFoxy/.lua-files.git
synced 2024-11-20 21:34:23 +00:00
ready for setup, test script
This commit is contained in:
parent
cbb3c2161f
commit
3e2bfbf829
@ -1,2 +1,7 @@
|
|||||||
# .lua-files
|
# .lua-files
|
||||||
It's like dotfiles, but no, it's just Lua scripts I find useful.
|
It's like dotfiles, but no, it's just Lua scripts I find useful.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
1. Put this folder somewhere.
|
||||||
|
2. Add that somewhere to your path. (On Windows, search for Environment Variables (it's "part of" Control Panel) and use the UI to add them to System variables.)
|
||||||
|
3. (On Windows) Add `.LUA` to PATHEXT.
|
||||||
|
11
print-arguments.lua
Normal file
11
print-arguments.lua
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env luajit
|
||||||
|
|
||||||
|
for key, value in pairs(arg) do
|
||||||
|
print(key, value)
|
||||||
|
-- -n to -1 is FIRST the interpreter path and THEN variables passed to it in order
|
||||||
|
-- 0 is the path to the file being executed
|
||||||
|
-- 1+ are arguments.
|
||||||
|
-- powershell handles quotes, cmd does not even pass arguments
|
||||||
|
end
|
||||||
|
|
||||||
|
-- os.execute("sleep 5")
|
Loading…
Reference in New Issue
Block a user