A simple utility to add the clear command to Windows, similar to Linux/Unix systems.
- Clone this repository:
git clone https://github.com/lighscent/win-clear.git win-clear
cd win-clear- Launch PowerShell as administrator and run:
cd C:\Users\x\Desktop\win-clear
Set-ExecutionPolicy Bypass -Scope Process -Force
.\install-clear.ps1In any CMD window, simply type:
clearwin-clear/
βββ clear.bat # Screen clearing script
βββ install-clear.ps1 # Installation script
βββ README.md # Documentation
clear.batcontains a simpleclscommand that clears the screeninstall-clear.ps1copiesclear.battoC:\Windows\System32to make it globally accessible
- Windows 10 or newer
- Administrator rights for installation
The installation script requires administrator rights as it modifies the system folder C:\Windows\System32.
MIT License
Contributions are welcome! Feel free to:
- Open an issue
- Submit a pull request
- Suggest improvements