Skip to content

Instantly share code, notes, and snippets.

@fitzy1321
Last active October 1, 2024 12:03
Show Gist options
  • Save fitzy1321/10d9aa00623b4cc768e6efde17469739 to your computer and use it in GitHub Desktop.
Save fitzy1321/10d9aa00623b4cc768e6efde17469739 to your computer and use it in GitHub Desktop.
Installing Starship.rs on Git Bash for Windows

Installing Starship prompt on Git Bash for Windows

Source: https://bleepcoder.com/starship/640385008/unable-to-install-on-windows-git-bash-configuration-not

All scripts should be ran in your git bash terminal, not cmd or ps.

  1. Make/Choose folder where to install: mkdir -p ~/bin/starship && cd ~/bin
  2. Download the install script: curl -fsSL https://starship.rs/install.sh > ./install.sh
  3. Run install script: ./install.sh --bin-dir /c/Users/<username>/bin/starship/ --platform pc-windows-msvc
  4. Finally add the following to the end of your .bashrc file:
# ~/.bashrc
...

export PATH=$PATH:"/c/Users/<username>/bin/starship"
eval "$(starship init bash)"

Relaunch git bash terminal

@salahelfarissi
Copy link

Thanks

@devgksx
Copy link

devgksx commented Jan 4, 2024

ty

@PabloAballe
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment