Improve and update the installation documentation (#6809)

pull/6828/head
David Else 2 years ago committed by GitHub
parent 4f03c03556
commit 83c307a66a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -41,8 +41,6 @@ line.
## Linux, macOS, Windows and OpenBSD packaging status ## Linux, macOS, Windows and OpenBSD packaging status
Helix is available for Linux, macOS and Windows via the official repositories listed below.
[![Packaging status](https://repology.org/badge/vertical-allrepos/helix.svg)](https://repology.org/project/helix/versions) [![Packaging status](https://repology.org/badge/vertical-allrepos/helix.svg)](https://repology.org/project/helix/versions)
## Linux ## Linux
@ -51,7 +49,7 @@ The following third party repositories are available:
### Ubuntu ### Ubuntu
Helix is available via [Maveonair's PPA](https://launchpad.net/~maveonair/+archive/ubuntu/helix-editor): Add the `PPA` for Helix:
```sh ```sh
sudo add-apt-repository ppa:maveonair/helix-editor sudo add-apt-repository ppa:maveonair/helix-editor
@ -61,7 +59,7 @@ sudo apt install helix
### Fedora/RHEL ### Fedora/RHEL
Helix is available via `copr`: Enable the `COPR` repository for Helix:
```sh ```sh
sudo dnf copr enable varlad/helix sudo dnf copr enable varlad/helix
@ -92,8 +90,8 @@ If you are using a version of Nix without flakes enabled,
### AppImage ### AppImage
Install Helix using [AppImage](https://appimage.org/). Install Helix using the Linux [AppImage](https://appimage.org/) format.
Download Helix AppImage from the [latest releases](https://github.com/helix-editor/helix/releases/latest) page. Download the official Helix AppImage from the [latest releases](https://github.com/helix-editor/helix/releases/latest) page.
```sh ```sh
chmod +x helix-*.AppImage # change permission for executable mode chmod +x helix-*.AppImage # change permission for executable mode
@ -143,33 +141,37 @@ pacman -S mingw-w64-ucrt-x86_64-helix
## Building from source ## Building from source
Clone the repository: Requirements:
- The [Rust toolchain](https://www.rust-lang.org/tools/install)
- The [Git version control system](https://git-scm.com/)
- A c++14 compatible compiler to build the tree-sitter grammars, for example GCC or Clang
If you are using the `musl-libc` standard library instead of `glibc` the following environment variable must be set during the build to ensure tree-sitter grammars can be loaded correctly:
```sh
RUSTFLAGS="-C target-feature=-crt-static"
```
1. Clone the repository:
```sh ```sh
git clone https://github.com/helix-editor/helix git clone https://github.com/helix-editor/helix
cd helix cd helix
``` ```
Compile from source: 2. Compile from source:
```sh ```sh
cargo install --path helix-term --locked cargo install --path helix-term --locked
``` ```
This command will create the `hx` executable and construct the tree-sitter This command will create the `hx` executable and construct the tree-sitter
grammars in the local `runtime` folder. To build the tree-sitter grammars requires grammars in the local `runtime` folder.
a c++ compiler to be installed, for example `gcc-c++`.
> 💡 If you are using the musl-libc instead of glibc the following environment variable must be set during the build
> to ensure tree-sitter grammars can be loaded correctly:
>
> ```sh
> RUSTFLAGS="-C target-feature=-crt-static"
> ```
> 💡 Tree-sitter grammars can be fetched and compiled if not pre-packaged. Fetch > 💡 Tree-sitter grammars can be fetched and compiled if not pre-packaged. Fetch
> grammars with `hx --grammar fetch` (requires `git`) and compile them with > grammars with `hx --grammar fetch` and compile them with
> `hx --grammar build` (requires a C++ compiler). This will install them in > `hx --grammar build`. This will install them in
> the `runtime` directory within the user's helix config directory (more > the `runtime` directory within the user's helix config directory (more
> [details below](#multiple-runtime-directories)). > [details below](#multiple-runtime-directories)).

Loading…
Cancel
Save