From 306c08495d3794092a5dfe71527678c99edbe111 Mon Sep 17 00:00:00 2001 From: Xevion Date: Sun, 13 Oct 2024 23:18:36 -0500 Subject: [PATCH] temp: commit privateDomain.age setup --- .ignored_keys/privateDomain.age | 1 + home/.chezmoiignore | 3 ++- home/.chezmoitemplates/keys.tmpl | 6 ++++++ home/.chezmoitemplates/scripts/commonrc.sh.tmpl | 2 +- home/.ignored_keys/privateDomain.age | 0 5 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .ignored_keys/privateDomain.age create mode 100644 home/.chezmoitemplates/keys.tmpl create mode 100644 home/.ignored_keys/privateDomain.age diff --git a/.ignored_keys/privateDomain.age b/.ignored_keys/privateDomain.age new file mode 100644 index 0000000..0819b04 --- /dev/null +++ b/.ignored_keys/privateDomain.age @@ -0,0 +1 @@ +***REMOVED*** diff --git a/home/.chezmoiignore b/home/.chezmoiignore index 8cade57..cd148ab 100644 --- a/home/.chezmoiignore +++ b/home/.chezmoiignore @@ -2,4 +2,5 @@ README.md FAQ.md .gitattributes .gitignore -.vscode \ No newline at end of file +.vscode +.ignored_keys \ No newline at end of file diff --git a/home/.chezmoitemplates/keys.tmpl b/home/.chezmoitemplates/keys.tmpl new file mode 100644 index 0000000..db9e502 --- /dev/null +++ b/home/.chezmoitemplates/keys.tmpl @@ -0,0 +1,6 @@ +{{- if false -}} +This is just a comments block, because apparently the templating langauge doesn't have a proper way to comment code as far as I can tell. +This file is just a template for loading keys from the .ignored_keys directory. +{{- else if eq . "privateDomain" -}} +***REMOVED*** +{{- end -}} \ No newline at end of file diff --git a/home/.chezmoitemplates/scripts/commonrc.sh.tmpl b/home/.chezmoitemplates/scripts/commonrc.sh.tmpl index 9795e1a..89cc10d 100644 --- a/home/.chezmoitemplates/scripts/commonrc.sh.tmpl +++ b/home/.chezmoitemplates/scripts/commonrc.sh.tmpl @@ -10,7 +10,7 @@ export TERM=xterm-256color # fixes terminal colors when ssh'ing into laptop export OPENAI_API_KEY="{{ (rbw "OpenAI - chatgpt-cli Key").data.password }}" # hishtory -export HISHTORY_SERVER="https://hsh.***REMOVED***" +export HISHTORY_SERVER="https://hsh.{{ template "keys.tmpl" "privateDomain" }}" export PATH="$PATH:$HOME/.hishtory" {{ if eq . "zsh" -}} source $HOME/.hishtory/config.zsh diff --git a/home/.ignored_keys/privateDomain.age b/home/.ignored_keys/privateDomain.age new file mode 100644 index 0000000..e69de29