Get Windows Terminal.
-
wsl.exe --install Ubuntu-24.04
-
Make a disk partition in Windows to keep Linux in its own separate partition.
-
Export the installed WSL into the new partition.
Open PowerShell with admin privileges. Replace
D:\with your partition's letter.wsl --shutdown mkdir D:\wsl_export wsl --export Ubuntu-24.04 "D:\wsl_export\ubuntu-ex.tar" wsl --unregister Ubuntu-24.04 wsl --import Ubuntu-24.04 "D:\wsl_export\ubuntu" "D:\wsl_export\ubuntu-ex.tar" --version 2 wsl --setdefault Ubuntu-24.04
Make changes to the
oh-my-zshplugins as you see fit. Restart the terminal. -
Open WSL Ubuntu. Run:
wget https://raw.githubusercontent.com/ss26/wsl-setup/refs/heads/main/init.sh chmod +x init.sh bash init.sh
-
(For StarShip terminal theme) Make a new directory:
mkdir ~/.configand get the Starship config file and add it to this directory.wget https://raw.githubusercontent.com/ss26/wsl-setup/refs/heads/main/starship.toml mv starship.toml ~/.config -
Finally, restart the terminal.
Thanks to @theRubberDuckiee for the starship.toml file! I modified this for use in Ubuntu.