Skip to content

Instantly share code, notes, and snippets.

@artmen1516
Last active December 5, 2022 08:40
Show Gist options
  • Save artmen1516/4e6256b71909b7a2ee37954f2c4f3845 to your computer and use it in GitHub Desktop.
Save artmen1516/4e6256b71909b7a2ee37954f2c4f3845 to your computer and use it in GitHub Desktop.
How to install ZSH and OH-MY-ZSH in Windows 10

How to install ZSH and OH-MY-ZSH in Windows 10

Tutorial from: https://platzi.com/blog/como-instalar-zsh-en-windows/

  1. Enable developer mode

    • Go to this path Settings -> Update&Security -> For Developers
    • Click yes on the pop-up message
    • Reboot PC
  2. Enable Windows Linux Subsystem

    • Go to Control Panel
    • Click on Programs
    • Click on Turn Windows features on or off
    • In the opened window search for Windows subsystem for Linux and check the box
    • Reboot PC
  3. Install and Configure Ubuntu

    • Install Ubuntu from Microsoft Store -> Ubuntu
    • Once installed, open Ubuntu, wait for finish installation and input terminal username and passoword
  4. Install ZSH & Oh-my-zsh

    • sudo apt-get install zsh
    • curl -Lo install.sh https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh
    • chmod +x install.sh
    • ./install.sh
    • Select Yes when promted if we want to change default shell to zsh [Y/n]
  5. Define ZSH as default terminal

    • chsh -s /usr/bin/zsh
    • in ~/.bashrc, edit file with vim or nano, and introduce
    if test -t 1; then
    exec zsh
    fi
    
    • save file and exit
    • execute again chsh -s /usr/bin/zsh
    • Reopen ubuntu and confirm zsh by echo $0, it should output zsh
  6. Install and Configure Hyper

    • Download .exe from https://hyper.is/
    • Install and open Hyper
    • Open preferences in options -> edit -> Preferences
    • Add line C:\\Windows\\System32\\bash.exe to shell: ''
    • save file and exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment