Last active
October 31, 2023 10:34
-
-
Save dahoba/e3f5e7239dad0d982f0ddebceed669cb to your computer and use it in GitHub Desktop.
HOWTO Install starship prompt under Git Bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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