From ae1652b1b9db20816baa28aa4a0b72cc58cabaa5 Mon Sep 17 00:00:00 2001 From: WahPlus Date: Thu, 30 Oct 2025 13:15:04 +0200 Subject: [PATCH] Rename /halyde/shell to /halyde/scripts The reason is because there will have to be a place to put scripts that are not apps. --- halyde/config/startupapps.json | 2 +- halyde/{shell => scripts}/shell.lua | 2 +- lib/shell.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename halyde/{shell => scripts}/shell.lua (97%) diff --git a/halyde/config/startupapps.json b/halyde/config/startupapps.json index 3597354..f624ae2 100644 --- a/halyde/config/startupapps.json +++ b/halyde/config/startupapps.json @@ -1 +1 @@ -["/halyde/shell/shell.lua"] +["/halyde/scripts/shell.lua"] diff --git a/halyde/shell/shell.lua b/halyde/scripts/shell.lua similarity index 97% rename from halyde/shell/shell.lua rename to halyde/scripts/shell.lua index 4c52eee..2d856b5 100644 --- a/halyde/shell/shell.lua +++ b/halyde/scripts/shell.lua @@ -141,7 +141,7 @@ while true do if workingDirectory:sub(-1, -1) ~= "/" then workingDirectory = workingDirectory .. "/" end - local shellCommand = terminal.read("shell", shellcfg.prompt:format(workingDirectory)) + local shellCommand = terminal.read({readHistoryType = "shell", prefix = shellcfg.prompt:format(workingDirectory)}) shell.run(shellCommand) gpu.freeAllBuffers() end diff --git a/lib/shell.lua b/lib/shell.lua index 9a35e1e..0d4ebf6 100644 --- a/lib/shell.lua +++ b/lib/shell.lua @@ -1,7 +1,7 @@ local filesystem = require("filesystem") -- get a list of installed shells -local shellDir = filesystem.list("/halyde/shell/") +local shellDir = filesystem.list("/halyde/scripts/") -- HACK: /halyde/scripts features more than just shells! local shells = {} for i=1,#shellDir do table.insert(shells,string.match(shellDir[i],"([^/]+)%.lua$"))