Skip to content

Commit

Permalink
Clarify the runtime directory location in installation docs (helix-ed…
Browse files Browse the repository at this point in the history
…itor#6624)

* runtime config made clearer

* following Unix FHS

* we probably want to install Helix as a regular user without sudo access

* suggestions adopted from @the-mikedavis

* attempted to synthesise comments given

* capitalisation of second header

* required changes hopefully made

* we should have a match now

* Linux windows dir match
  • Loading branch information
kazimir-malevich authored and Triton171 committed Jun 18, 2023
1 parent fae4c55 commit e159d26
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions book/src/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ pacman -S mingw-w64-ucrt-x86_64-helix

Requirements:

Clone the Helix GitHub repository into a directory of your choice. The
examples in this documentation assume installation into either `~/src/` on
Linux and macOS, or `%userprofile%\src\` on Windows.

- 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
Expand Down Expand Up @@ -195,13 +199,15 @@ grammars in the local `runtime` folder.

#### Linux and macOS

Either set the `HELIX_RUNTIME` environment variable to point to the runtime files and add it to your `~/.bashrc` or equivalent:
The **runtime** directory is one below the Helix source, so either set a
`HELIX_RUNTIME` environment variable to point to that directory and add it to
your `~/.bashrc` or equivalent:

```sh
HELIX_RUNTIME=/home/user-name/src/helix/runtime
HELIX_RUNTIME=~/src/helix/runtime
```

Or, create a symlink in `~/.config/helix` that links to the source code directory:
Or, create a symbolic link:

```sh
ln -Ts $PWD/runtime ~/.config/helix/runtime
Expand Down

0 comments on commit e159d26

Please sign in to comment.