From 16460774ca0b10cbd2affb7477fe6b7d3fdc91c0 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath <2+defunkt@users.noreply.github.com> Date: Thu, 2 Oct 2025 14:49:40 -0700 Subject: [PATCH] pwd should match statusline --- bin/pwd.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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