starship: starship fails to install on Cygwin

On Cygwin I run the install command

sh -c "$(curl -fsSL https://starship.rs/install.sh)"

Then I get the error:

$ sh -c "$(curl -fsSL https://starship.rs/install.sh)"

  Configuration
> Bin directory: /usr/local/bin
> Platform:      pc-windows-msvc
> Arch:          x86_64

> Tarball URL: https://github.com/starship/starship/releases/latest/download/starship-x86_64-pc-windows-msvc.zip
? Install Starship latest to /usr/local/bin? [y/N] y
> Installing Starship, please wait…
x Command failed (exit code 23): curl --fail --silent --location --output /tmp/tmp.zh6cLQDzF5.zip https://github.com/starship/starship/releases/latest/download/starship-x86_64-pc-windows-msvc.zip

> This is likely due to Starship not yet supporting your configuration.
> If you would like to see a build for your configuration,
> please create an issue requesting a build for x86_64-pc-windows-msvc:
> https://github.com/starship/starship/issues/new/

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (5 by maintainers)

Most upvoted comments

I confirm that adding

source <(starship init bash --print-full-init | dos2unix)

instead of

eval "$(starship init bash)"

in the file ~/.bashrc works on my cygwin. Thanks!!

It looks like #2449 isn’t quite fixed yet.

A workaround shared in that issue for zsh is this:

source <(starship init zsh --print-full-init | dos2unix)

For bash you should be able to use this:

source <(starship init bash --print-full-init | dos2unix)

(In case someone else has the same problem) I solved this by using chocolatey. choco install starship