Files
ps1-craft/UNINSTALL.md
2026-01-25 00:14:21 +00:00

36 lines
813 B
Markdown

# Uninstall
## Linux / WSL (global)
Remove installed files:
```bash
sudo rm -f /etc/profile.d/ps1.sh /etc/profile.d/banner.sh
sudo rm -f /etc/ps1-season /etc/ps1-style /etc/ps1-punchline
```
Remove the managed block from `/etc/bash.bashrc`:
```bash
sudo sed -i '/# >>> dotfiles (managed) >>>/,/# <<< dotfiles (managed) <<</d' /etc/bash.bashrc
```
Open a new shell to confirm the prompt is gone.
## macOS (per-user)
Remove installed files:
```bash
rm -f ~/.config/ps1/ps1.sh ~/.config/ps1/season ~/.config/ps1/style
```
Remove the managed block from your shell configs:
```bash
sed -i '' '/# >>> user ps1 (managed) >>>/,/# <<< user ps1 (managed) <<</d' ~/.bashrc
sed -i '' '/# >>> user ps1 (managed) >>>/,/# <<< user ps1 (managed) <<</d' ~/.bash_profile
```
Open a new shell or run `source ~/.bashrc`.