2021-04-05 15:18:43 +09:00
# Installation
2021-05-12 20:32:44 +09:00
We provide pre-built binaries on the [GitHub Releases page ](https://github.com/helix-editor/helix/releases ).
2021-04-05 15:18:43 +09:00
2021-06-23 01:05:08 +09:00
[](https://repology.org/project/helix/versions)
2021-04-05 15:18:43 +09:00
## OSX
2021-06-17 23:21:33 +09:00
A Homebrew tap is available:
2021-04-05 15:18:43 +09:00
2021-06-17 23:21:33 +09:00
```
brew tap helix-editor/helix
brew install helix
```
2021-04-05 15:18:43 +09:00
## Linux
### NixOS
A [flake ](https://nixos.wiki/wiki/Flakes ) containing the package is available in
the project root. The flake can also be used to spin up a reproducible development
2022-03-01 20:12:50 -06:00
shell for working on Helix with `nix develop` .
Flake outputs are cached for each push to master using
[Cachix ](https://www.cachix.org/ ). With Cachix
[installed ](https://docs.cachix.org/installation ), `cachix use helix` will
configure Nix to use cached outputs when possible.
2021-04-05 15:18:43 +09:00
### Arch Linux
2021-09-07 13:00:52 +09:00
Releases are available in the `community` repository.
2021-11-29 13:07:32 +01:00
A [helix-git ](https://aur.archlinux.org/packages/helix-git/ ) package is also available on the AUR, which builds the master branch.
2021-04-05 15:18:43 +09:00
2021-12-17 20:16:32 +05:30
### Fedora Linux
You can install the COPR package for Helix via
```
sudo dnf copr enable varlad/helix
sudo dnf install helix
```
2022-03-31 21:55:55 +02:00
### Void Linux
```
sudo xbps-install helix
```
2021-04-05 15:18:43 +09:00
## Build from source
```
2022-02-14 17:23:35 -06:00
git clone https://github.com/helix-editor/helix
2021-05-12 20:32:44 +09:00
cd helix
cargo install --path helix-term
2021-04-05 15:18:43 +09:00
```
This will install the `hx` binary to `$HOME/.cargo/bin` .
2021-05-12 20:32:44 +09:00
2021-07-30 16:27:22 +09:00
Helix also needs it's runtime files so make sure to copy/symlink the `runtime/` directory into the
2022-04-27 14:21:20 -05:00
config directory (for example `~/.config/helix/runtime` on Linux/macOS). This location can be overridden
2021-07-30 16:27:22 +09:00
via the `HELIX_RUNTIME` environment variable.
2022-02-14 17:23:35 -06:00
2022-07-05 02:32:46 +09:00
| OS | command |
|-------------------|-----------|
|windows(cmd.exe) |`xcopy runtime %AppData%/helix/runtime` |
|windows(powershell)|`xcopy runtime $Env:AppData\helix\runtime` |
|linux/macos |`ln -s $PWD/runtime ~/.config/helix/runtime` |
2022-04-20 01:44:11 +00:00
2022-05-02 23:46:25 +02:00
## Finishing up the installation
To make sure everything is set up as expected you should finally run the helix healthcheck via
```
hx --health
```
For more information on the information displayed in the healthcheck results refer to [Healthcheck ](https://github.com/helix-editor/helix/wiki/Healthcheck ).
2022-02-14 17:23:35 -06:00
## Building tree-sitter grammars
Tree-sitter grammars must be fetched and compiled if not pre-packaged.
2022-03-08 00:13:15 -06:00
Fetch grammars with `hx --grammar fetch` (requires `git` ) and compile them
2022-05-28 21:32:47 +05:30
with `hx --grammar build` (requires a C++ compiler).