aboutsummaryrefslogtreecommitdiff
path: root/book/src/install.md
diff options
context:
space:
mode:
Diffstat (limited to 'book/src/install.md')
-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.