Make Git Bash
beautiful and smart.
7 themes, autosuggestions, syntax highlighting and fuzzy history for Git Bash on Windows. One command. No admin rights. Undo any time.
curl -fsSL https://raw.githubusercontent.com/akadeepesh/oh-my-gitbash/main/install.sh | bashStock Git Bash, before.
Git Bash themes
Seven themes. One command to switch.
Each theme colours the prompt, Windows Terminal and the Git Bash window together, so nothing clashes.
Rounded pills, with ❯ on its own line. The default.
What you get
Everything Git Bash was missing.
The zsh plugins people install on macOS and Linux, set up for you on Windows in one go.
Autosuggestions
Suggestions from your history appear as you type, greyed out. Press → to accept.
Syntax highlighting
Typos turn red before you press Enter. Valid commands turn green.
- ▌npm run dev
- ▌docker logs -f api
- ▌ssh deploy@staging
- ▌git log --oneline -20
Fuzzy history search
Ctrl+R opens fzf over your whole history, shared across tabs.
Jump anywhere with z
zoxide learns the folders you use. Type part of a name and go. Prefix search on ↑/↓ and smart completion come with it.
No admin, survives updates
Everything lives in your home folder, not Program Files. Updating Git for Windows doesn't break it, and it works in VS Code's terminal too.
Prefer bash? Stay on bash
--shell bash keeps you in bash with the same themes, prompt, keys and history. It starts faster than stock Git Bash.
How it works
Real zsh in Git Bash. No WSL, no VM.
Git Bash isn't Linux. It's a set of Windows programs on the MSYS2 runtime. MSYS2 builds zsh for that same runtime, so it runs natively next to bash.
What you open
bash.exe
Git Bash, as installed by Git for Windows. Untouched.
Shared runtime
msys-2.0.dll
Ships with Git for Windows. Provides fork, signals and /c/ paths to both shells.
What we add
zsh.exe
The official MSYS2 package, sha256-pinned, in ~/.oh-my-gitbash.
Benchmarked
Starts faster than every setup we measured.
On Windows every process costs 15–28 ms before it does anything. oh-my-gitbash starts one process per prompt where others start three, and caches everything else.
- oh-my-gitbashzsh149 ms
- Starship + pluginszsh201 ms
- oh-my-gitbash (bash mode)bash238 ms
- Oh My Zsh defaultzsh259 ms
- Powerlevel10k + pluginszsh260 msinstant prompt shows a prompt at ~68 ms
- Git for Windows defaultbash279 ms
- Oh My Poshbash357 ms
- Oh My Zsh + Powerlevel10kzsh468 ms
- Starshipbash473 ms
Medians, measured through a real pseudo-terminal on one machine. Lower is better. Powerlevel10k's gitstatus daemon wins in mid-size repos, and the full results say so. Method and full results. Run omg bench to measure your own machine.
Safe by design
Your dotfiles are never overwritten.
It only adds clearly marked blocks. Running it twice changes nothing the second time.
See every change first
--dry-run prints a diff of every file it would change and every download it would make. It changes nothing.
--- would change: ~/.bashrc + # >>> oh-my-gitbash >>> + # Managed by oh-my-gitbash. Remove with: omg uninstall + [ -f ~/.oh-my-gitbash/src/core/bashrc ] && . … + # <<< oh-my-gitbash <<<
Backed up before it's touched
The first time a file changes, an exact copy goes to a timestamped folder, with a sha256 for each file.
~/.oh-my-gitbash/backups/ 20261129-101500-4242/ .bashrc .inputrc .minttyrc manifest.tsv
One command to undo
omg uninstall removes our blocks and restores every file. Unedited files come back byte for byte, and the tests check it.
$ omg uninstall ==> Restoring files ✓ ~/.bashrc ✓ ~/.minttyrc ✓ Removed oh-my-gitbash; backups kept
Compared
vs Oh My Zsh by hand, Oh My Posh and WSL.
Oh My Posh is great if you only want a prompt. WSL is right if you need Linux. oh-my-gitbash is for staying in Git Bash and getting the full setup.
| oh-my-gitbash | zsh by hand | Oh My Posh | WSL | |
|---|---|---|---|---|
| Setup | One command | ~10 manual steps | winget + edit profile | Enable WSL, install a distro, set up zsh |
| No admin rights | ||||
| Survives Git for Windows updates | n/a | |||
| Autosuggestions and syntax highlighting | ||||
| Themes prompt, terminal and window together | ||||
| Undo with one command | ||||
| Native Windows paths and .exe files |
FAQ
Questions, answered.
No. Git Bash runs on the MSYS2 runtime, and oh-my-gitbash installs the official MSYS2 build of zsh into your home folder. It runs on the runtime Git for Windows already ships. No Linux, no virtual machine.
Your Git Bash, finally good.
Paste one line into Git Bash. Open a new tab. That's it.
curl -fsSL https://raw.githubusercontent.com/akadeepesh/oh-my-gitbash/main/install.sh | bashomg theme listthemes, with colour swatchesomg theme set pastelswitch prompt, terminal and window togetheromg doctorcheck font, PATH, startup time, settingsomg repairre-apply after a Git for Windows updateomg updateget the latest versionomg uninstallput everything back