Blog/content/posts/2022/add-path-to-path.md

18 lines
490 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: "🧩 PowerShell: Добавить путь в переменную среды PATH"
date: 2022-07-01T00:48:30+03:00
draft: false
tags: [powershell, tips]
---
Получить доступ к PATH в PowerShell можно через переменную `$Env:PATH`.
Вывести её можно просто вызвав:
```powershell
$Env:PATH
```
А добавить путь можно таким образом:
```powershell
$Env:PATH += ";D:\Software\git\bin\"
```