Simplify privateDomain to promptString in config TOML

This commit is contained in:
2024-11-07 19:05:48 -06:00
parent aed656294a
commit 0cb2bea7e7
7 changed files with 3 additions and 10 deletions

View File

@@ -1 +0,0 @@
***REMOVED***

View File

@@ -41,6 +41,7 @@ args = [
]
[data]
privateDomain = "{{ promptString "Enter the private domain" }}"
chassis = "{{ $chassisType }}"
wsl = {{ $wsl }}

View File

@@ -1 +0,0 @@
.ignored_keys

View File

@@ -1,6 +0,0 @@
{{- 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 -}}

View File

@@ -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.{{ template "keys.tmpl" "privateDomain" }}"
export HISHTORY_SERVER="https://hsh.{{ .privateDomain }}"
export PATH="$PATH:$HOME/.hishtory"
{{ if eq .shell "zsh" -}}
source $HOME/.hishtory/config.zsh

View File

View File

@@ -47,7 +47,7 @@ fi
# Install hishtory
if ! type -P hishtory; then
echo "chezmoi: Installing hishtory"
export HISHTORY_SERVER="https://hsh.{{ template "keys.tmpl" "privateDomain" }}"
export HISHTORY_SERVER="https://hsh.{{ .privateDomain }}"
export HISHTORY_SKIP_INIT_IMPORT='true'
curl https://hishtory.dev/install.py | python3 - --offline --skip-config-modification
fi