PowerShell | just run it
This commit is contained in:
parent
8729591478
commit
0832da5147
@ -21,11 +21,7 @@ Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward
|
|||||||
|
|
||||||
function pythons {
|
function pythons {
|
||||||
(8, 9, 10, 11, 12) | ForEach-Object {
|
(8, 9, 10, 11, 12) | ForEach-Object {
|
||||||
if ($args.Count -eq 0) {
|
&"python3.$_ $args"
|
||||||
Invoke-Expression "python3.$_ -c 'import sys;print(sys.version)'"
|
|
||||||
} else {
|
|
||||||
Invoke-Expression "python3.$_ $args"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user