Commit 97248b7

mo khan <mo@mokhan.ca>
2026-03-11 20:51:01
fix: default list to the current directory
1 parent a48e139
Changed files (1)
.elelem
plugins
.elelem/plugins/list.rb
@@ -7,7 +7,7 @@ Elelem::Plugins.register(:list) do |agent|
     required: [],
     aliases: ["ls"]
   ) do |a|
-    path = a["path"] || "."
+    path = a["path"] && !a["path"].empty? ? a["path"] : "."
     flags = a["recursive"] ? "-laR" : "-la"
     agent.toolbox.exec("ls", flags, path)
   end