Skip to content

Commit 98cc587

Browse files
committed
update(rawstr4c/uv): Get uv config on Windows
1 parent 4f040cf commit 98cc587

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/recipe/lang/Python/rawstr4c.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ grep -A 2 'index' @f@ | sed -n 's/^url = "\(.*\)"/\1/p'
4242
### Get uv config on Windows
4343

4444
```powershell
45-
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)] } }'
45+
powershell -Command "$lines = Get-Content @f@; for($index=0; $index -lt $lines.Count; $index++) { if($lines[$index] -match '^\[\[index\]\]$') { $lines[$index..($index+3)] } }"
4646
```
4747

4848

0 commit comments

Comments
 (0)