view .chezmoiscripts/run_once_after_99-build-zsh-histdb-skim.sh.tmpl @ 848:7218c2192214

feat: only enable c-s selection in copy mode this allows to use c-s in helix to manually mark a jump position
author Zeger Van de Vannet <zegervdv@me.com>
date Thu, 15 Feb 2024 11:35:01 +0100
parents 72744c944497
children
line wrap: on
line source

{{ if (or (eq .chezmoi.os "darwin") (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.name "Ubuntu"))) -}}
#!/usr/bin/env zsh

source $HOME/.asdf/asdf.sh
asdf shell rust 1.64.0
brew unlink sqlite

HISTDB_SKIM_DIR="$HOME/.local/share/zsh-histdb-skim"
if [[ -d "$HISTDB_SKIM_DIR" ]]
then
  cd "$HISTDB_SKIM_DIR"
  git pull
else
  git clone https://github.com/zegervdv/zsh-histdb-skim "$HISTDB_SKIM_DIR"
fi
cd "$HISTDB_SKIM_DIR"

cargo build --release
cp target/release/zsh-histdb-skim zsh-histdb-skim

{{ end -}}