WSL setup for ZSH - philipf/notebook GitHub Wiki
General
sudo apt install zsh
chsh -s $(which zsh)
Docker
https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly
echo "export DOCKER_HOST=tcp://localhost:2375" >> ~/.zshrc && source ~/.zshrc
Oh-my-zsh
https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/UbuntuMono
Windows Terminal
mklink /h %LOCALAPPDATA%\packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json %HOMEDRIVE%%HOMEPATH%\Dropbox\WindowsTerminal\settings.json
Cmder
General >
Choose your startup task: {WSL:zsh}
General > Fonts
Main: UbuntuMono NF
Alternative: UbuntuMono NF
Startup > Tasks
Name: {WSL:zsh}
Task parameters:
-icon "%USERPROFILE%\AppData\Local\lxss\bash.ico"
Commands:
set "PATH=%ConEmuBaseDirShort%\wsl;%PATH%" & %ConEmuBaseDirShort%\conemu-cyg-64.exe --wsl -C~ -cur_console:pnm:/mnt -t zsh -l
Max memory and other settings
https://github.com/microsoft/WSL/issues/4166
https://medium.com/@lewwybogus/how-to-stop-wsl2-from-hogging-all-your-ram-with-docker-d7846b9c5b37
https://docs.microsoft.com/en-us/windows/wsl/release-notes#build-18945