Skip to content

GitBash

https://renan-costaalencar.medium.com/zsh-and-oh-my-zsh-on-windows-via-git-bash-a2f21b85b51c

Terminal window
# Download Zsh package from https://packages.msys2.org/package/zsh?repo=msys&variant=x86_64
# Decompress the .zst file
$ zstd --decompress ~/Downloads/zsh-5.8-5-x86_64.pkg.tar.zst
# Untar
$ tar zvf ~/Downloads/zsh-5.8-5-x86_64.pkg.tar
# Copy files to C:\Program Files\Git
# Test zsh
$ zsh --version
zsh 5.9 (x86_64-pc-msys)
Terminal window
vi .bashrc
Terminal window
if [ -t 1 ]; then
exec zsh
fi

Get ison from https://github.com/Zsh-art/logo/blob/main/app-icons/zsh_icon_256x256-multi-size.ico

{
"commandline": "\"C:\\Program Files\\Git\\bin\\bash.exe\" --cd-to-home",
"guid": "{c376c6d5-1dfe-566e-812b-4571e5d57ae8}",
"hidden": false,
"icon": "C:\\Program Files\\Git\\usr\\share\\zsh\\zsh_icon_256x256-multi-size.ico",
"name": "Git Zsh"
}
Terminal window
# Disable ssl verify
git config --global http.sslVerify false
# Install oh-my-zsh
sh -c "$(curl -fsSLk https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# revert ssl verify
git config --global --unset http.sslVerify