From ab819ede9a39e00bac0bc87a97e51d1ae7f94575 Mon Sep 17 00:00:00 2001 From: woojiq Date: Fri, 14 Jul 2023 18:05:49 +0300 Subject: docs(install): add how to install helix from snap (#7625) --- book/src/install.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'book') 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. -- cgit v1.2.3-70-g09d2