1# PowerShell
2
3PowerShell language support in Zed is provided by the community-maintained [Zed PowerShell extension](https://github.com/wingyplus/zed-powershell). Please report issues to: [github.com/wingyplus/zed-powershell/issues](https://github.com/wingyplus/zed-powershell/issues)
4
5- Tree-sitter: [airbus-cert/tree-sitter-powershell](https://github.com/airbus-cert/tree-sitter-powershell)
6- Language Server: [PowerShell/PowerShellEditorServices](https://github.com/PowerShell/PowerShellEditorServices)
7
8## Setup
9
10### Install PowerShell 7+ {#powershell-install}
11
12- macOS: `brew install powershell/tap/powershell`
13- Alpine: [Installing PowerShell on Alpine Linux](https://learn.microsoft.com/en-us/powershell/scripting/install/install-alpine)
14- Debian: [Install PowerShell on Debian Linux](https://learn.microsoft.com/en-us/powershell/scripting/install/install-debian)
15- RedHat: [Install PowerShell on RHEL](https://learn.microsoft.com/en-us/powershell/scripting/install/install-rhel)
16- Ubuntu: [Install PowerShell on RHEL](https://learn.microsoft.com/en-us/powershell/scripting/install/install-ubuntu)
17- Windows: [Install PowerShell on Windows](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows)
18
19The Zed PowerShell extension will default to the `pwsh` executable found in your path.
20
21### Install PowerShell Editor Services (Optional) {#powershell-editor-services}
22
23The Zed PowerShell extensions will attempt to download [PowerShell Editor Services](https://github.com/PowerShell/PowerShellEditorServices) automatically.
24
25If want to use a specific binary, you can specify in your that in your Zed settings.json:
26
27```json
28 "lsp": {
29 "powershell-es": {
30 "binary": {
31 "path": "/path/to/PowerShellEditorServices"
32 }
33 }
34 }
35```