hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/gils
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-10-07 21:43:38 +0200
committerhachem <im@hachem.wtf>2026-10-07 21:43:38 +0200
commite55291a32a8b3f7b5c105cd79e86f3c19f19b3d4 (patch)
tree0a52300c63a011683ceba1642e6f7c24e4d367ef /gils
parent5d4a723a5f157c0ed38a348099a600d1d21c3c2b (diff)
feat: tty and ttf, you'd think somethn starting with tt would be fun to do...
Diffstat (limited to 'gils')
-rw-r--r--gils/ed.rv2
-rw-r--r--gils/gils.rv4
2 files changed, 1 insertions, 5 deletions
diff --git a/gils/ed.rv b/gils/ed.rv
index 00ff50a..2572ba3 100644
--- a/gils/ed.rv
+++ b/gils/ed.rv
@@ -124,7 +124,7 @@ end
fn ed_quit(state) do
state.active = :false
- puts("% ")
+ puts(prompt())
end
global ed_state = { active = :false, input = :false, path = "", lines = {}, dot = 0, insert_at = 0, dirty = :false }
diff --git a/gils/gils.rv b/gils/gils.rv
index 1a61cc5..afd0bbd 100644
--- a/gils/gils.rv
+++ b/gils/gils.rv
@@ -24,10 +24,6 @@ end
# scripts read their args off env.ctx, stashed here before eval
global env = { ctx = :nil }
-# working dir + path resolver, shared by every gils tool and the shell. lives
-# here so its declared before anything that uses it gets concatenated
-global wd = { path = "/" }
-
global abspath = fn(arg) do
if arg:len() == 0 return wd.path
let path = arg