From 5fdb983c38b6c4a46a99d4d4933edd24de3c2413 Mon Sep 17 00:00:00 2001 From: Xevion Date: Thu, 7 Nov 2024 14:07:19 -0600 Subject: [PATCH] Add hishtory install step to onchange pkg installer --- home/run_onchange_install-packages.sh.tmpl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/home/run_onchange_install-packages.sh.tmpl b/home/run_onchange_install-packages.sh.tmpl index ce05259..907d660 100644 --- a/home/run_onchange_install-packages.sh.tmpl +++ b/home/run_onchange_install-packages.sh.tmpl @@ -3,6 +3,16 @@ # libpq-dev libssh-dev libsqlite3-dev echo "chezmoi: Installing packages" sudo apt install micro iperf3 ripgrep unzip p7zip-full zsh fish nmap curl git reptyr sqlite + +echo "chezmoi: Installing hishtory" +export HISHTORY_SERVER="https://hsh.{{ template "keys.tmpl" "privateDomain" }}" +export HISHTORY_SKIP_INIT_IMPORT='true' +curl https://hishtory.dev/install.py | python3 - --offline --skip-config-modification +echo "chezmoi: This may take some time while the hishtory database is populated." +hishtory init {{ (rbw "hishtory-user_secret").data.password }} --force +hishtory syncing enable + + {{- else if eq .chezmoi.os "darwin" -}} #!/bin/sh brew install ripgrep