fix(cli): obtain directory data from server (#5320)

This commit is contained in:
OpeOginni
2025-12-10 15:55:15 -06:00
committed by GitHub
parent e060f968f5
commit 7435d94f85
2 changed files with 6 additions and 1 deletions
@@ -5,7 +5,8 @@ import { Global } from "@/global"
export function useDirectory() {
const sync = useSync()
return createMemo(() => {
const result = process.cwd().replace(Global.Path.home, "~")
const directory = sync.data.path.directory ?? process.cwd()
const result = directory.replace(Global.Path.home, "~")
if (sync.data.vcs?.branch) return result + ":" + sync.data.vcs.branch
return result
})