Skip to content

Instantly share code, notes, and snippets.

View DarkKowalski's full-sized avatar
🧐
What the hack?

Kowalski DarkKowalski

🧐
What the hack?
  • Shanghai
  • 00:38 (UTC +08:00)
View GitHub Profile
@DarkKowalski
DarkKowalski / watch.ps1
Created September 23, 2026 07:44
Powershell 7 watch command
# Usage: watch [-n <seconds>] <command> [arguments...]
# Example: watch -n 0.5 nvidia-smi
# Requires PowerShell 7+.
# Requires a terminal with ANSI/VT escape sequence support (e.g. Windows Terminal).
function watch {
param(
[Alias("n")]
[double]$Interval = 2,