setup WSL

  • Run PowerShell as admin
$ Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
  • Reboot the computer
  • Download Ubuntu form Microsoft Store
  • Install and set username and password

setup ZSH

$ sudo apt-get update
$ sudo apt-get install zsh
$ which zsh
/usr/bin/zsh
$ chsh -s /usr/bin/zsh

setup Oh My ZSH

$ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  • Edit ~/.zshrc to change theme and add plugins.
ZSH_THEME="ys"

plugins=(
  git
  npm
  node
  sudo
)

References

  1. Windows Subsystem for Linux 環境配置 (最新 1709 版) – Hungys.blog() – Medium
  2. Plugins · robbyrussell/oh-my-zsh Wiki