Last active
March 2, 2022 12:36
-
-
Save EricCrosson/368a39131f1e89dcc5cf82a2b1318713 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
# helix-editor hash: {{ include ".git-submodule-shas/helix" | sha256sum }} | |
readonly prefix="${HOME}/.local/share/chezmoi" | |
readonly helix_dir="${prefix}/helix" | |
readonly helix_config_dir="${HOME}/.config.helix" | |
readonly helix_runtime_directory="${helix_config_dir}/runtime" | |
# update helix and submodules | |
cd "${helix_dir}" || exit 1 | |
git submodule update --init --recursive | |
# compile helix | |
cargo install --path helix-term | |
# copy the helix runtme as instructed in the readme | |
rm -rf "${helix_runtime_directory}" | |
mkdir -p "${helix_config_dir}" | |
cp -r "${helix_dir}/runtime" "${helix_runtime_directory}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment