# HG changeset patch # User zegervdv # Date 1664727720 -7200 # Node ID e486254ef4207f738f265f10c9d341b7bdec3536 # Parent 189d0c688639a37f2d2e020c11db5a78ad45ca49 fix: improve asdf installer script diff -r 189d0c688639 -r e486254ef420 .chezmoiscripts/run_once_after_99-build-zsh-histdb-skim.sh.tmpl --- a/.chezmoiscripts/run_once_after_99-build-zsh-histdb-skim.sh.tmpl Sun Oct 02 11:27:18 2022 +0200 +++ b/.chezmoiscripts/run_once_after_99-build-zsh-histdb-skim.sh.tmpl Sun Oct 02 18:22:00 2022 +0200 @@ -1,11 +1,20 @@ {{ if (or (eq .chezmoi.os "linux") (eq .chezmoi.os "darwin")) -}} #!/usr/bin/env zsh +source $(brew --prefix asdf)/libexec/asdf.sh asdf shell rust 1.64.0 brew unlink sqlite -git clone https://github.com/zegervdv/zsh-histdb-skim $HOME/.local/share/zsh-histdb-skim -cd $HOME/.local/share/zsh-histdb-skim +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 diff -r 189d0c688639 -r e486254ef420 .chezmoiscripts/run_onchange_after_20-install-asdf-plugins.sh.tmpl --- a/.chezmoiscripts/run_onchange_after_20-install-asdf-plugins.sh.tmpl Sun Oct 02 11:27:18 2022 +0200 +++ b/.chezmoiscripts/run_onchange_after_20-install-asdf-plugins.sh.tmpl Sun Oct 02 18:22:00 2022 +0200 @@ -15,6 +15,7 @@ asdf_plugin_add python asdf_plugin_add neovim asdf_plugin_add direnv +asdf_plugin_add sqlite asdf install asdf direnv setup --shell zsh --version latest diff -r 189d0c688639 -r e486254ef420 dot_tool-versions --- a/dot_tool-versions Sun Oct 02 11:27:18 2022 +0200 +++ b/dot_tool-versions Sun Oct 02 18:22:00 2022 +0200 @@ -2,3 +2,4 @@ neovim 0.8.0 direnv 2.32.1 rust 1.64.0 +sqlite 3.39.4