*nix which analog for powershell
All checks were successful
Build MkDocs / build-and-deploy (push) Successful in 3s

This commit is contained in:
2025-05-10 20:37:09 +03:00
parent ec2b6e13b7
commit 265d6d5ce7

View File

@@ -32,6 +32,12 @@ function python-path {
python -c "import sys; print(sys.executable)" python -c "import sys; print(sys.executable)"
} }
# https://stackoverflow.com/a/16949127/17341937
function which($name)
{
Get-Command $name | Select-Object -ExpandProperty Definition
}
# Модуль для автокомплита GIT https://github.com/dahlbyk/posh-git # Модуль для автокомплита GIT https://github.com/dahlbyk/posh-git
# Устанавливается одной командой # Устанавливается одной командой
# PowerShellGet\Install-Module posh-git -Scope CurrentUser -Force # PowerShellGet\Install-Module posh-git -Scope CurrentUser -Force