aboutsummaryrefslogtreecommitdiff
path: root/book
diff options
context:
space:
mode:
authorwoojiq2023-07-14 15:05:49 +0000
committerGitHub2023-07-14 15:05:49 +0000
commitab819ede9a39e00bac0bc87a97e51d1ae7f94575 (patch)
treed35f8f0d6f60727d7c37e8c601b696fe9bd5f4ef /book
parent2cb00bcbc4c82afd6da7f61d85b38830230fc526 (diff)
docs(install): add how to install helix from snap (#7625)
Diffstat (limited to 'book')
-rw-r--r--book/src/install.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/book/src/install.md b/book/src/install.md
index 748a8ee9..d270ed7a 100644
--- a/book/src/install.md
+++ b/book/src/install.md
@@ -9,6 +9,7 @@
- [Arch Linux extra](#arch-linux-extra)
- [NixOS](#nixos)
- [Flatpak](#flatpak)
+ - [Snap](#snap)
- [AppImage](#appimage)
- [macOS](#macos)
- [Homebrew Core](#homebrew-core)
@@ -104,6 +105,23 @@ flatpak install flathub com.helix_editor.Helix
flatpak run com.helix_editor.Helix
```
+### Snap
+
+Helix is available on [Snapcraft](https://snapcraft.io/helix) and can be installed with:
+
+```sh
+snap install --classic helix
+```
+
+This will install Helix as `/snap/bin/helix` (so make sure `/snap/bin` is in your `PATH`), which is not the preferred invocation (`hx`).
+As a workaround you can manually alias the command globally with:
+
+```sh
+snap alias helix hx
+```
+
+Or, otherwise, just alias in your shell's config.
+
### AppImage
Install Helix using the Linux [AppImage](https://appimage.org/) format.