@ogulcancelik/pi-minimal-footer 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.ts +1 -1
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -1000,7 +1000,7 @@ export default function (pi: ExtensionAPI) {
1000
1000
  const { percentage, used: ctxUsed, total: ctxTotal } = getContextInfo(ctx);
1001
1001
 
1002
1002
  // Build parts for status line
1003
- let pwd = process.cwd();
1003
+ let pwd = ctx.cwd;
1004
1004
  const home = process.env.HOME || process.env.USERPROFILE;
1005
1005
  if (home && pwd.startsWith(home)) {
1006
1006
  pwd = `~${pwd.slice(home.length)}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ogulcancelik/pi-minimal-footer",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Minimal footer for pi with context gauge and subscription usage bars",
5
5
  "type": "module",
6
6
  "keywords": [