mirror of
https://github.com/Xevion/dotfiles.git
synced 2025-12-15 16:11:33 -06:00
Simplify privateDomain to promptString in config TOML
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
***REMOVED***
|
|
||||||
@@ -41,6 +41,7 @@ args = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[data]
|
[data]
|
||||||
|
privateDomain = "{{ promptString "Enter the private domain" }}"
|
||||||
chassis = "{{ $chassisType }}"
|
chassis = "{{ $chassisType }}"
|
||||||
wsl = {{ $wsl }}
|
wsl = {{ $wsl }}
|
||||||
|
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
.ignored_keys
|
|
||||||
@@ -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 -}}
|
|
||||||
@@ -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 }}"
|
export OPENAI_API_KEY="{{ (rbw "OpenAI - chatgpt-cli Key").data.password }}"
|
||||||
|
|
||||||
# hishtory
|
# hishtory
|
||||||
export HISHTORY_SERVER="https://hsh.{{ template "keys.tmpl" "privateDomain" }}"
|
export HISHTORY_SERVER="https://hsh.{{ .privateDomain }}"
|
||||||
export PATH="$PATH:$HOME/.hishtory"
|
export PATH="$PATH:$HOME/.hishtory"
|
||||||
{{ if eq .shell "zsh" -}}
|
{{ if eq .shell "zsh" -}}
|
||||||
source $HOME/.hishtory/config.zsh
|
source $HOME/.hishtory/config.zsh
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ fi
|
|||||||
# Install hishtory
|
# Install hishtory
|
||||||
if ! type -P hishtory; then
|
if ! type -P hishtory; then
|
||||||
echo "chezmoi: Installing hishtory"
|
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'
|
export HISHTORY_SKIP_INIT_IMPORT='true'
|
||||||
curl https://hishtory.dev/install.py | python3 - --offline --skip-config-modification
|
curl https://hishtory.dev/install.py | python3 - --offline --skip-config-modification
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user