pwd should match statusline
This commit is contained in:
parent
bc62e1a0ad
commit
16460774ca
|
|
@ -1,10 +1,9 @@
|
||||||
// Show the current working directory.
|
// Show the current working directory.
|
||||||
|
|
||||||
import { dirname } from "path"
|
import { projectDir, projectName } from "@/project"
|
||||||
import { projectDir } from "@/project"
|
|
||||||
import { sessionGet } from "@/session"
|
import { sessionGet } from "@/session"
|
||||||
|
|
||||||
export default async function () {
|
export default async function () {
|
||||||
const root = projectDir()
|
const dir = projectDir()
|
||||||
return (sessionGet("cwd") || root).replace(dirname(root), "")
|
return projectName() + ": " + ((sessionGet("cwd") || dir).replace(projectDir(), "") || "/")
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user