update(rawstr4c/uv): Get uv config on Windows

This commit is contained in:
LinRan
2025-12-29 14:14:03 +08:00
parent 4f040cf115
commit 98cc5876fc

View File

@@ -42,7 +42,7 @@ grep -A 2 'index' @f@ | sed -n 's/^url = "\(.*\)"/\1/p'
### Get uv config on Windows ### Get uv config on Windows
```powershell ```powershell
powershell -Command '$lines = Get-Content C:\Users\30353\AppData\Roaming\uv\uv.toml; for($i=0; $i -lt $lines.Count; $i++) { if($lines[$i] -match "^\[\[index\]\]$") { $lines[$i..($i+3)] } }' powershell -Command "$lines = Get-Content @f@; for($index=0; $index -lt $lines.Count; $index++) { if($lines[$index] -match '^\[\[index\]\]$') { $lines[$index..($index+3)] } }"
``` ```