()
| 3 | import { Global } from "@/global" |
| 4 | |
| 5 | export function useDirectory() { |
| 6 | const sync = useSync() |
| 7 | return createMemo(() => { |
| 8 | const directory = sync.data.path.directory || process.cwd() |
| 9 | const result = directory.replace(Global.Path.home, "~") |
| 10 | if (sync.data.vcs?.branch) return result + ":" + sync.data.vcs.branch |
| 11 | return result |
| 12 | }) |
| 13 | } |