Andy Kipp
Andy Kipp
Try to cut empty line here: https://github.com/anki-code/xontrib-prompt-starship/blob/00e7c8bd1131b28aae94822c2b44d5f0a1e72a7c/xontrib/prompt_starship.py#L11-L16 i.e. ["Using starship cross-shell prompt to rendering right sections" in xontrib-prompt-bar](https://github.com/anki-code/xontrib-prompt-bar#using-starship-cross-shell-prompt-to-rendering-right-sections)
I think you're using [prompt toolkit](https://python-prompt-toolkit.readthedocs.io/en/master/) for `$SHELL` and the first way is to search there.
hey! PR is welcome! Thank you for catching this!
Example: ```xsh $PROMPT_FIELDS['cwd4'] = lambda: str(Path(*Path(__xonsh__.env['PROMPT_FIELDS']['cwd']()).expanduser().parts[-4:])) $XONTRIB_PROMPT_BAR_LEFT = '{hostname#nolocal}{user#nolocal}{cwd4#accent}' xontrib load prompt_bar ```
We have #5380 fix in 0.17.0. Is it still actual issue? cc @jaraco
Hey @jahschwa! Thank you for catching this and reporting! I suppose the `SyntaxError` was raised because the space was treated as indentation and Python mode was applied.
> improve what triggers the execution I prefer this way for now. User just need to have what expected by calling `.output`. Thanks for working on this!
hi! Nice catch. Your prompt is looking like [starship](https://github.com/anki-code/xontrib-prompt-starship) or something like this. Is it right or you construct prompt manually using $PROMPT? Please share details of how it works.
Maybe for some reason git status is trying to read files that were changed during git push. We need to mitigate this. PR is welcome!
Hey @arkhan! Could you please retest the current version from main branch because we have many fixes: ```xsh xpip install -U --force-reinstall git+https://github.com/xonsh/xonsh # restart xonsh ``` Thanks!