Last active
July 13, 2026 16:22
-
-
Save wieczorek1990/f7642fe27c83d5747d27c91e6642e667 to your computer and use it in GitHub Desktop.
Helix installer.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Helix from source installer. | |
| if [ ! -d "helix" ] | |
| then | |
| echo "Cloning." | |
| git clone --depth=1 https://github.com/helix-editor/helix | |
| else | |
| echo "Already cloned." | |
| fi | |
| echo "Entering." | |
| cd helix/ | |
| echo "Installing." | |
| echo "Installing: cargo check." | |
| hash cargo | |
| if [ $? -ne 0 ] | |
| then | |
| echo "Installing Rust." | |
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | |
| fi | |
| echo "Installing: cargo install." | |
| cargo install --path helix-term --locked | |
| echo "Creating necessary directories." | |
| mkdir -p ~/.local/bin/ | |
| mkdir -p ~/.config/helix/ | |
| echo "Deleting old artifacts." | |
| rm ~/.local/bin/hx | |
| rm -rf ~/.config/helix/runtime/ | |
| echo "Copying artifacts." | |
| cp target/release/hx ~/.local/bin/hx | |
| cp -r runtime ~/.config/helix/runtime | |
| echo "Setting grammars." | |
| hx --grammar fetch | |
| hx --grammar build |
wieczorek1990
commented
Jul 13, 2026
Author
Author
/Users/lukaszwieczorek/Software/helix/runtime/grammars/sources/move
total 4704
drwxr-xr-x@ 16 lukaszwieczorek staff 512 13 lip 16:57 .
drwxr-xr-x@ 304 lukaszwieczorek staff 9728 13 lip 17:05 ..
drwxr-xr-x@ 13 lukaszwieczorek staff 416 13 lip 16:57 .git
-rw-r--r--@ 1 lukaszwieczorek staff 50 13 lip 16:57 .gitignore
-rw-r--r--@ 1 lukaszwieczorek staff 375 13 lip 16:57 binding.gyp
drwxr-xr-x@ 4 lukaszwieczorek staff 128 13 lip 16:57 bindings
-rw-r--r--@ 1 lukaszwieczorek staff 1987 13 lip 16:57 Cargo.lock
-rw-r--r--@ 1 lukaszwieczorek staff 524 13 lip 16:57 Cargo.toml
-rw-r--r--@ 1 lukaszwieczorek staff 28861 13 lip 16:57 grammar.js
-rw-r--r--@ 1 lukaszwieczorek staff 2215 13 lip 16:57 LICENSE
-rw-r--r--@ 1 lukaszwieczorek staff 520 13 lip 16:57 package.json
lrwxr-xr-x@ 1 lukaszwieczorek staff 46 13 lip 16:57 queries -> /Users/timothyzakian/.config/nvim/queries/move
-rw-r--r--@ 1 lukaszwieczorek staff 705 13 lip 16:57 README.md
drwxr-xr-x@ 6 lukaszwieczorek staff 192 13 lip 16:57 src
drwxr-xr-x@ 50 lukaszwieczorek staff 1600 13 lip 16:57 tests
-rw-r--r--@ 1 lukaszwieczorek staff 2344652 13 lip 16:57 tree_sitter.png
/Users/lukaszwieczorek/Software/helix/runtime/grammars/sources/rpmspec/queries
total 8
drwxr-xr-x@ 4 lukaszwieczorek staff 128 13 lip 16:57 .
drwxr-xr-x@ 29 lukaszwieczorek staff 928 13 lip 16:57 ..
-rw-r--r--@ 1 lukaszwieczorek staff 3366 13 lip 16:57 highlights.scm
lrwxr-xr-x@ 1 lukaszwieczorek staff 1 13 lip 16:57 rpmspec -> .
/Users/lukaszwieczorek/Software/helix/runtime/grammars/sources/qmljs/queries
total 16
drwxr-xr-x@ 6 lukaszwieczorek staff 192 13 lip 16:56 .
drwxr-xr-x@ 17 lukaszwieczorek staff 544 13 lip 16:56 ..
lrwxr-xr-x@ 1 lukaszwieczorek staff 61 13 lip 16:56 highlights-javascript.scm -> ../node_modules/tree-sitter-javascript/queries/highlights.scm
lrwxr-xr-x@ 1 lukaszwieczorek staff 61 13 lip 16:56 highlights-typescript.scm -> ../node_modules/tree-sitter-typescript/queries/highlights.scm
-rw-r--r--@ 1 lukaszwieczorek staff 1000 13 lip 16:56 highlights.scm
-rw-r--r--@ 1 lukaszwieczorek staff 148 13 lip 16:56 locals.scm
Author
Running it:
# Make as testing directory
mkdir Testing && cd Testing/
# Download the Gist into install.sh
sh install.sh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment