Why go through all these steps? Make things easier and simply use the 4devs menu in ๐ All-win-1 ๐ to get it done effortlessly
Old/Manual Mode
- To install fish shell on Windows Git Bash, install Git and MSYS executing the following commands in powershell:
winget install --id Git.Git --accept-package-agreements
winget install --id MSYS2.MSYS2 --accept-package-agreements
- Add
C:\msys64\usr\bin
to the system's path environment variables, or copy the following line into~/.bash_profile
(create it if it doesn't exist)
export PATH="/c/msys64/usr/bin:$PATH"
- Download the latest
tar.zst
files for fish (Direct Link) and pcre2_16 (Direct Link) (Note: The packages are compressed usingzstd
)
- Extract the contents to your git bash installation directory (Usually
C:\Program Files\Git
)
- First, extract fish
- Then, extract pcre2_16 **(do not overwrite existing content during extraction)**
Extraction Options:
- Test and configure fish:
Open git bash and type:
fish
- Configure fish as default shell
Add the following lines at the end of the ~/.bashrc
file (create it if it doesn't exist)
# Launch Fish
if [ -t 1 ]; then
exec fish
fi
Reopen Git Bash.
Path to fish configuration: ~\.config\fish\config.fish
Note: If you receive the following error error: Unable to open shared memory with path
simply configure Git Bash to run as administrator.
Repository | Instructions |
---|---|
crates.io | cargo install starship --locked |
Chocolatey | choco install starship |
conda-forge | conda install -c conda-forge starship |
Scoop | scoop install starship |
winget | winget install --id Starship.Starship |