mirror of
https://github.com/RubyMetric/chsrc
synced 2025-12-30 06:39:30 +08:00
update(rawstr4c/uv): Get uv config on Windows
This commit is contained in:
@@ -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)] } }"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user