Commit a4c2489
authored
panache-git: fix bugs showing modified files and non-home dirs (#1188)
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, which 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, and the
`str join` in question turned out to be unnecessary, so it was removed,
avoiding the error.1 parent 485a62c commit a4c2489
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