A small shell with Lua inside.

Familiar shell syntax at the prompt. Real Lua tables between pipeline stages. Zero runtime dependencies.

wisp ~/wisp
in-process / 0 forks
Monochrome wisp ribbon
lines of C++17
3,668
stripped binary
420 KB
startup time
0.55 ms
static Lua 5.4
Linux & macOS

Structured in-process. Plain text at the edge.

Consecutive Lua stages pass tables directly on the Lua stack. Crossing into a binary on $PATH converts to key=value lines automatically.

Native Lua run 0 forks
files where name ~= %.cpp$ sort_by size desc
Lua table on stack { name = "executor.cpp", size = 52770 }
External binary 1 fork
| wc -l or | grep main
key=value text name=executor.cpp size=52770

No config DSL. Just Lua 5.4.

Every global function in ~/.config/wisp/init.lua becomes a shell command with access to sh(), capture(), and wisp.status.

-- ~/.config/wisp/init.lua
function prompt()
  local branch = capture("git branch --show-current 2>/dev/null")
  local git = branch ~= "" and (" (" .. branch .. ")") or ""
  local err = wisp.status ~= 0 and (" [" .. wisp.status .. "]") or ""
  return "wisp" .. git .. err .. "> "
end

-- Plain command: first arg is pipeline input (nil if none), rest are shell args
function greet(_, name)
  print("hello, " .. (name or "world"))
end

-- Aliases are regular functions calling sh()
function ll()
  sh("ls -la")
end

Install in one line.

Static-Lua binaries run across distros with no shared library mismatches.

curl -fsSL https://wisp-shell.pages.dev/install.sh | sh