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
+2
View File
@@ -1,5 +1,7 @@
# TerminalPolyjuice # TerminalPolyjuice
[![State-of-the-art Shitcode](https://img.shields.io/static/v1?label=State-of-the-art&message=Shitcode&color=7B5804)](https://github.com/trekhleb/state-of-the-art-shitcode)
A "Polyjuice Potion" for your terminals: a single repository that unifies configuration across Zsh, Bash, Nushell, and PowerShell — aliases, functions, prompts — together with settings for common terminal tools such as Starship, Helix, and Zed. Each shell is configured independently; pick what you need. A "Polyjuice Potion" for your terminals: a single repository that unifies configuration across Zsh, Bash, Nushell, and PowerShell — aliases, functions, prompts — together with settings for common terminal tools such as Starship, Helix, and Zed. Each shell is configured independently; pick what you need.
## Repository Layout ## Repository Layout
+10 -10
View File
@@ -1,11 +1,11 @@
# Configure New Archlinux in WSL # Configure New Archlinux in WSL
## Add user `gwb` ## Add user `<username>`
```shell ```shell
cd cd
pacman -Syu pacman -Syu
useradd -m gwb useradd -m <username>
``` ```
run run
@@ -16,11 +16,11 @@ to set a password for `root`
run run
```shell ```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 ```shell
pacman -S sudo pacman -S sudo
@@ -29,7 +29,7 @@ pacman -S vim
edit `/etc/sudoers` edit `/etc/sudoers`
uncomment `%wheel ALL=(ALL:ALL) ALL` uncomment `%wheel ALL=(ALL:ALL) ALL`
```shell ```shell
usermod -aG wheel gwb usermod -aG wheel <username>
``` ```
## Install and configure `ZSH` ## Install and configure `ZSH`
@@ -41,12 +41,12 @@ pacman -S fzf
pacman -S zoxide pacman -S zoxide
pacman -S starship pacman -S starship
pacman -S python pacman -S python
su gwb su <username>
cd cd
git clone <repo-url> $HOME/.TerminalPolyjuice git clone <repo-url> $HOME/.TerminalPolyjuice
chsh -s /bin/zsh chsh -s /bin/zsh
exit exit
su gwb su <username>
cd cd
mkdir .config mkdir .config
cd $HOME/.TerminalPolyjuice/zsh 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` add the contents in `$HOME/.TerminalPolyjuice/zsh/zshenv` into `$HOME/.zshenv`
# Set `gwb` as default user # Set `<username>` as default user
```shell ```shell
wsl --manage archlinux --set-default-user gwb wsl --manage archlinux --set-default-user <username>
``` ```