Skip to content

Instantly share code, notes, and snippets.

Last active May 21, 2024 05:32
Show Gist options
  • Save fworks/af4c896c9de47d827d4caa6fd7154b6b to your computer and use it in GitHub Desktop.
Save fworks/af4c896c9de47d827d4caa6fd7154b6b to your computer and use it in GitHub Desktop.
Zsh / Oh-my-zsh on Windows Git Bash


  1. Download the latest zsh package:




The package now is compacted using zstd, so now we need some "special" extractor.
So, in my case, I've downloaded this file And extracted it using the Peazip.

  1. Extract the content to your git bash installation dir:

Usually C:\Program Files\Git

  1. Test it and config zsh:

Open git bash and type:


So, this step is important, it seems zsh will ask a few configurations, like the tab completion, history, etc.
Please read the options and set that according to your use.

  1. Installing oh-my-zsh, execute the following cmd on git bash
sh -c "$(curl -fsSL"
  1. Configuring zsh as default shell

Edit the ~/.bashrc file. (create it if it doesn't exist)

Add the following lines at the end of the file

# Launch Zsh
if [ -t 1 ]; then
exec zsh

Close and open again the git bash.

Optional steps

  1. Installing the Honukay theme
curl -fsSL -o ~/.oh-my-zsh/custom/themes/honukai.zsh-theme
  1. Set it
sed -i 's/ZSH_THEME="robbyrussell"/ZSH_THEME="honukai"/g' ~/.zshrc
Copy link


guys, does anyone know how to remove this? What they write doesn't help. I tried using -f to run the function and it still appears

Copy link


My name is Erick Shil, I'm begginer brazilian dev and I have only one problem, that I didn't find solution anywhere.

Screenshot 2024-02-17 172921
Always when Hyper start, this message it's printed, and I don't know how to solve this question. In StackOverflow, nobody alredy have the same problem. Can you help me?


  • Lenovo Ideapad 3
  • Ryzen 7 5700
  • 128GB SSD
  • 8GB RAM

(ps. Sorry for the bad English. As a developer (and understanding the importance of English, since we only speak Portuguese here), I am trying to train English without a translator...)

Copy link

Screenshot 2024-04-03 183248

I've done writting the .bashrc, zsh wont showing up as git bash default theme. Can somebody help me?

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