Skip to content

Instantly share code, notes, and snippets.

@dahoba
Last active October 31, 2023 10:34
Show Gist options
  • Save dahoba/e3f5e7239dad0d982f0ddebceed669cb to your computer and use it in GitHub Desktop.
Save dahoba/e3f5e7239dad0d982f0ddebceed669cb to your computer and use it in GitHub Desktop.
HOWTO Install starship prompt under Git Bash
We need extra arguments different than the [Original command](https://starship.rs/guide/#%F0%9F%9A%80-installation)
Open Git Bash; Execute command
```sh
mkdir ~/.config/starship
curl -sS https://starship.rs/install.sh | sh -s -- --yes --bin-dir ~/.config/starship
```
Edit `.bashrc` under Git Bash or file `C:/Users/Username/.bashrc` add this at the TOP of the file.
```
if [ -t 1 ]; then
exec zsh
fi
```
Edit `.zshrc` under Git Bash or file `C:/Users/Username/.zshrc` add this at the BOTTOM of the file.
```
PATH=$HOME/.config/starship:$PATH
eval "$(starship init zsh)"
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment