PowerShell | just run it

This commit is contained in:
shenjack 2023-10-21 11:53:23 +08:00
parent 8729591478
commit 0832da5147
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -21,11 +21,7 @@ Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward
function pythons {
(8, 9, 10, 11, 12) | ForEach-Object {
if ($args.Count -eq 0) {
Invoke-Expression "python3.$_ -c 'import sys;print(sys.version)'"
} else {
Invoke-Expression "python3.$_ $args"
}
&"python3.$_ $args"
}
}