diff --git a/bin/pwd.ts b/bin/pwd.ts index cf89dac..a7ddcc2 100644 --- a/bin/pwd.ts +++ b/bin/pwd.ts @@ -1,10 +1,9 @@ // Show the current working directory. -import { dirname } from "path" -import { projectDir } from "@/project" +import { projectDir, projectName } from "@/project" import { sessionGet } from "@/session" export default async function () { - const root = projectDir() - return (sessionGet("cwd") || root).replace(dirname(root), "") + const dir = projectDir() + return projectName() + ": " + ((sessionGet("cwd") || dir).replace(projectDir(), "") || "/") } \ No newline at end of file