Tutorial from: https://platzi.com/blog/como-instalar-zsh-en-windows/
-
Enable developer mode
- Go to this path Settings -> Update&Security -> For Developers
- Click yes on the pop-up message
- Reboot PC
-
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
-
Install and Configure Ubuntu
- Install Ubuntu from Microsoft Store -> Ubuntu
- Once installed, open Ubuntu, wait for finish installation and input terminal username and passoword
-
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]
-
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 outputzsh
-
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
toshell: ''
- save file and exit