Skip to content

Conversation

@ehdevries
Copy link
Contributor

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.

…ctories

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.
@fdncred fdncred merged commit a4c2489 into nushell:main Dec 5, 2025
1 check passed
@fdncred
Copy link
Contributor

fdncred commented Dec 5, 2025

Thanks!

@ehdevries ehdevries deleted the panache-git-mod-file-bugfix branch December 5, 2025 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants