nose-pluto/bin/pwd.ts
2025-10-02 14:49:40 -07:00

9 lines
289 B
TypeScript

// Show the current working directory.
import { projectDir, projectName } from "@/project"
import { sessionGet } from "@/session"
export default async function () {
const dir = projectDir()
return projectName() + ": " + ((sessionGet("cwd") || dir).replace(projectDir(), "") || "/")
}