on master help sign in
docs(install): add how to install helix from snap (#7625)
commitab819ede9a39e00bac0bc87a97e51d1ae7f94575 authorwoojiq <122799969+woojiq@users.noreply.github.com> dateFri 14 Jul 2023, 18:05 (3 years ago) parent2cb00bc
1 file changed+18
book/src/install.md+18
book/src/install.md+18
@@ -9,6 +9,7 @@
99 - [Arch Linux extra](#arch-linux-extra)
1010 - [NixOS](#nixos)
1111 - [Flatpak](#flatpak)
12+ - [Snap](#snap)
1213 - [AppImage](#appimage)
1314- [macOS](#macos)
1415 - [Homebrew Core](#homebrew-core)
@@ -104,6 +105,23 @@ flatpak install flathub com.helix_editor.Helix
104105flatpak run com.helix_editor.Helix
105106```
106107
108+### Snap
109+
110+Helix is available on [Snapcraft](https://snapcraft.io/helix) and can be installed with:
111+
112+```sh
113+snap install --classic helix
114+```
115+
116+This will install Helix as `/snap/bin/helix` (so make sure `/snap/bin` is in your `PATH`), which is not the preferred invocation (`hx`).
117+As a workaround you can manually alias the command globally with:
118+
119+```sh
120+snap alias helix hx
121+```
122+
123+Or, otherwise, just alias in your shell's config.
124+
107125### AppImage
108126
109127Install Helix using the Linux [AppImage](https://appimage.org/) format.