aboutsummaryrefslogtreecommitdiff
path: root/lib/shell/init.nom
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-01-14 15:42:48 -0800
committerBruce Hill <bruce@bruce-hill.com>2019-01-14 15:43:24 -0800
commitc1c32688a4afc43f6addb99b8b5fa878944a70e3 (patch)
treec886f21b5b08a9053aa74fcba4b241dae5ede76d /lib/shell/init.nom
parent2309b696fc34b24f05f6658b94f9105ca8ee76e4 (diff)
Overhaul in progress, mostly working. Moved all the nomsu packages into
lib/, including core/*. Changes to how nomsu environments and importing work.
Diffstat (limited to 'lib/shell/init.nom')
-rw-r--r--lib/shell/init.nom12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/shell/init.nom b/lib/shell/init.nom
new file mode 100644
index 0000000..6a8970e
--- /dev/null
+++ b/lib/shell/init.nom
@@ -0,0 +1,12 @@
+#
+ This file defines some actions for running shell commands.
+
+externally (=sh $cmd) means:
+ lua> ("
+ local result = io.popen(\$cmd)
+ local contents = result:read("*a")
+ result:close()
+ return contents
+ ")
+
+external $(sh> $) = $os.execute