Skip to content

Commit

Permalink
docs(install): add how to install helix from snap (#7625)
Browse files Browse the repository at this point in the history
  • Loading branch information
woojiq authored Jul 14, 2023
1 parent 2cb00bc commit ab819ed
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions book/src/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- [Arch Linux extra](#arch-linux-extra)
- [NixOS](#nixos)
- [Flatpak](#flatpak)
- [Snap](#snap)
- [AppImage](#appimage)
- [macOS](#macos)
- [Homebrew Core](#homebrew-core)
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit ab819ed

Please sign in to comment.