- Windows 10 Build 18917+ (only as Windows Insider 09/2019)
Run in PowerShell, as admin (elevated):
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform
- open Microsoft Store on Windows;
- search for Linux;
- install Ubuntu 18.04 (recommended).
Run in CMD, as admin:
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
Run in CMD, as admin:
choco install hyper vscode -y
- Hyper (icon) > Properties > Compatibility > check "Run as adminstrator";
- open Hyper;
- Edit > Preferences
- change lines:
shell: 'C:\\Windows\\System32\\wsl.exe',
shellArgs: [~],
- save preferences;
- restart Hyper.
Run in Hyper:
sudo apt update && sudo apt upgrade -y
sudo apt install zsh -y
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh | bash
echo "export NVM_DIR=\"$HOME/.nvm\"\n[ -s \"$NVM_DIR/nvm.sh\" ] && \. \"$NVM_DIR/nvm.sh\"\n[ -s \"$NVM_DIR/bash_completion\" ] && \. \"$NVM_DIR/bash_completion\"" >> ~/.zshrc
source ~/.zshrc
nvm install node
nvm alias default node
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install --no-install-recommends yarn
npm i -g nodemon pm2 eslint pug
sudo apt install neofetch
echo 'neofetch' >> ~/.zshrc
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
Then, add to your ~/.zshrc
:
ZSH_THEME="powerlevel9k/powerlevel9k"
For Windows, download and install manually from: https://github.com/ryanoasis/nerd-fonts/releases
Run in Powershell:
git clone https://github.com/powerline/fonts.git --depth=1
cd fonts
Set-ExecutionPolicy Bypass
./install.ps1
cd ..
Remove-Item fonts -Recurse -Force
- FuraMono
- FiraCode
- Menlo
- DejaVu Sans
- Hack
- HeavyData
- back to Hyper, open Edit > Preferences;
- give font name (
fontFamily: '"FuraMono Nerd Font Mono", "FuraMono Nerd Font", Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace'
) - (optional) set
webGLRenderer: false
if you see 1px spaces in Powerline stripes (causes small performance degradation).
Change your ~/.zshrc
and include:
POWERLEVEL9K_MODE='nerdfont-complete'
More options and styling on
https://github.com/Powerlevel9k/powerlevel9k/wiki/Stylizing-Your-Prompt
hyper i hyper-statusline hyper-search hyper-oceanic-next
sudo apt upgrade -y
Run in Hyper:
# zsh-completions
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions
# zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# fasd
sudo apt install fasd -y
plugins=(
ansible
aws
cargo
command-not-found
docker
fasd
git
golang
npm
npx
nvm
react-native
rust
sudo
systemd
ubuntu
vscode
web-search
yarn
zsh-autosuggestions
zsh-completions
)
"terminal.integrated.fontFamily": "'FuraMono Nerd Font Mono'",
"terminal.integrated.fontSize": 12
exit
Thanks for sharing.
Could you please guide with Windows 11. After WSL run as admin, restarting the system crashes the OS(Windows 11) Any insight on this will be pretty much appreciated.