pwd should match statusline
This commit is contained in:
parent
bc62e1a0ad
commit
16460774ca
|
|
@ -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(), "") || "/")
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user