chore: scrub remaining username placeholders in wsl docs

This commit is contained in:
2026-06-16 17:23:48 +08:00
parent 6afe62cf82
commit de82d13f05
2 changed files with 12 additions and 10 deletions
+10 -10
View File
@@ -1,11 +1,11 @@
# Configure New Archlinux in WSL
## Add user `gwb`
## Add user `<username>`
```shell
cd
pacman -Syu
useradd -m gwb
useradd -m <username>
```
run
@@ -16,11 +16,11 @@ to set a password for `root`
run
```shell
passwd gwb
passwd <username>
```
to set a password for user `gwb`
to set a password for user `<username>`
## Add user `gwb` into group `sudo`
## Add user `<username>` into group `sudo`
```shell
pacman -S sudo
@@ -29,7 +29,7 @@ pacman -S vim
edit `/etc/sudoers`
uncomment `%wheel ALL=(ALL:ALL) ALL`
```shell
usermod -aG wheel gwb
usermod -aG wheel <username>
```
## Install and configure `ZSH`
@@ -41,12 +41,12 @@ pacman -S fzf
pacman -S zoxide
pacman -S starship
pacman -S python
su gwb
su <username>
cd
git clone <repo-url> $HOME/.TerminalPolyjuice
chsh -s /bin/zsh
exit
su gwb
su <username>
cd
mkdir .config
cd $HOME/.TerminalPolyjuice/zsh
@@ -55,7 +55,7 @@ zsh polyjuice.sh install_ohmyzsh config_starship check
add the contents in `$HOME/.TerminalPolyjuice/zsh/zshenv` into `$HOME/.zshenv`
# Set `gwb` as default user
# Set `<username>` as default user
```shell
wsl --manage archlinux --set-default-user gwb
wsl --manage archlinux --set-default-user <username>
```