# Configure New Archlinux in WSL ## Add user `` ```shell cd pacman -Syu useradd -m ``` run ```shell passwd ``` to set a password for `root` run ```shell passwd ``` to set a password for user `` ## Add user `` into group `sudo` ```shell pacman -S sudo pacman -S vim ``` edit `/etc/sudoers` uncomment `%wheel ALL=(ALL:ALL) ALL` ```shell usermod -aG wheel ``` ## Install and configure `ZSH` ```shell pacman -S zsh pacman -S git pacman -S fzf pacman -S zoxide pacman -S starship pacman -S python su cd git clone $HOME/.TerminalPolyjuice chsh -s /bin/zsh exit su cd mkdir .config cd $HOME/.TerminalPolyjuice/zsh zsh polyjuice.sh install_ohmyzsh config_starship check ``` add the contents in `$HOME/.TerminalPolyjuice/zsh/zshenv` into `$HOME/.zshenv` # Set `` as default user ```shell wsl --manage archlinux --set-default-user ```