install zsh windows code example
Example 1: install zsh windows 10
# 1. Activate "Windows for Linux Subsystem" Feature
# Run this script on PowerShell:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
# Restart your machine.
# 2. Install a Linux Distribution
# You shouldn't have problems in this step. Just open Microsoft
# Store App and search for a distro. In my case, I installed Debian.
# 3. Install Zsh
# Open Debian from Start Menu. It will open a command prompt with the same features as Debian's terminal. If you try to run sudo apt-get install zsh first, you may receive an error (Unable to locate package zsh). So, first you should run these two commands:
sudo apt-get update
sudo apt-get upgrade
# Now you will be able to install Zsh properly, running:
sudo apt-get install zsh
# When the installation is done, run this:
zsh
#This will walk you through some basic configuration for zsh.
# 4. Install Oh My Zsh!
# Install curl:
sudo apt-get install curl
# Install Oh My Zsh!:
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# While installing, it will ask if you want to set zsh as standard.
# Grepper has a limit for instructions.
# check the last steps in the site: https://dev.to/vsalbuq/how-to-install-oh-my-zsh-on-windows-10-home-edition-49g2
Example 2: install zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"