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,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