Update all

This commit is contained in:
2024-10-01 10:04:00 -04:00
parent 7730c93964
commit f465bc517d
8 changed files with 156 additions and 42 deletions
+3 -3
View File
@@ -7,14 +7,14 @@ local M = {}
-- Function to require all Lua files in a directory and merge them
local function require_configs(dir)
-- Check if the path exists
-- Check if the path exists
local path = dir or os.getenv("HOME") .. "/.config/wezterm/config/"
if not path then
print("Directory path is nil. Unable to load configurations.")
return
end
-- Open the directory
-- Open the directory
local pfile, open_err = io.popen('ls "' .. path .. '"')
if not pfile then
print("Error opening directory:", open_err)
@@ -23,7 +23,7 @@ local function require_configs(dir)
local configs = {}
-- Iterate over the files in the directory
-- Iterate over the files in the directory
for file in pfile:lines() do
if file:match("%.lua$") then
local module_name = file:gsub("%.lua$", "")