zsh-snap: Error with latest Starship prompt

Hi, I got

error: Invalid value for '--jobs <JOBS>': cannot parse integer from empty string

For more information try --help

with the latest startship

znap eval starship 'starship init zsh --print-full-init'
znap prompt

comment out znap prompt works fine.

zsh 5.8 (x86_64-apple-darwin21.0) starship stable 1.2.1 znap e019e00

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 3
  • Comments: 20 (8 by maintainers)

Commits related to this issue

Most upvoted comments

@theol0403 @Jaakkonen @muuvmuuv @tshu-w @dannysteenman @billyogat

Starting with aa8396a5354943709468ca634eb32e170a79d293, the following should now work:

znap eval starship 'starship init zsh --print-full-init'
znap prompt starship

@mgoodness Thanks for the sponsorship! 😻

This pull request to Starship, once merged, will make it possible to simplify the above to

znap eval starship 'starship init zsh --print-full-init'
znap prompt starship

This pull request to Starship, once merged, will make it possible to simplify the above to

znap eval starship 'starship init zsh --print-full-init'
znap prompt starship

Hi, I get the same error as @billyogat when I use the commands above. However, if I change it to this:

znap eval starship 'starship init zsh --print-full-init'
prompt_starship_precmd
znap prompt

Then it works.

@tshu-w @mgoodness My pull request to Starship has been merged.

Thanks much! Have added starship_precmd to my config and will keep an eye on the PR.