Commit c40b2e1
committed
panache-git prompt: fix bugs showing modified files and non-home directories
This PR fixes two bugs in the panache-git prompt:
First, modified file counts were not being properly shown after updating to Nushell v0.109.
Nushell v0.109 contained a breaking change in `split column`:
https://www.nushell.sh/blog/2025-11-29-nushell_v0_109_0.html#switch-split-column-to-0-index-like-other-commands-toc
panache-git relied on the old default column names when splitting columns to count modified files.
This has been fixed with explicit column names so that the default names no longer matter.
Second, when the current working directory was outside the home directory, panache-git would throw an error.
The code was attempting to join path strings that didn't exist. Removing an excess `str join` fixed the issue.1 parent 485a62c commit c40b2e1
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
| 162 | + | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| |||
0 commit comments