Skip to content

Instantly share code, notes, and snippets.

@EricCrosson
Last active March 2, 2022 12:36
Show Gist options
  • Save EricCrosson/368a39131f1e89dcc5cf82a2b1318713 to your computer and use it in GitHub Desktop.
Save EricCrosson/368a39131f1e89dcc5cf82a2b1318713 to your computer and use it in GitHub Desktop.
#!/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