Skip to content

Instantly share code, notes, and snippets.

@steelx
Created April 29, 2022 05:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steelx/62296dc2223b2e303ec6ed82cb80122e to your computer and use it in GitHub Desktop.
Save steelx/62296dc2223b2e303ec6ed82cb80122e to your computer and use it in GitHub Desktop.
Install ZSH on Windows via Git bash + Terminal

Install Latest ZSH

https://packages.msys2.org/package/zsh?repo=msys&variant=x86_64

Optional Install PeaZip on Windows

https://peazip.github.io/ winget install -e --id GiorgioTani.PeaZip

CD to C:\Program Files\Git

  • extract all contents of zsh ..tar file to this folder
  • in side terminal type: zsh

Create config files

autoload -U zsh-newuser-install
zsh-newuser-install -f

Finally open notepad ~/.bashrc

  • Add to the top of the file
if [ -t 1 ]; then
  exec zsh
fi

Install Plugins

git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions
git clone https://github.com/zsh-users/zsh-syntax-highlighting ${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-autosuggestions
  • Now open notepad ~/.zshrc
  • And Add plugins under this section # Which plugins would you like to load?
plugins=(git lighthouse zsh-completions zsh-autosuggestions zsh-syntax-highlighting)

Preview

image

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