feat: adding prompt for hosttype, rather than relying on hostname
This commit is contained in:
parent
d667822e3e
commit
642e0958e0
5 changed files with 11 additions and 7 deletions
|
@ -3,9 +3,13 @@
|
|||
{{- $hostname := output "scutil" "--get" "ComputerName" | trim -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- $choices := list "wsl" "devterm" "personal" "work" -}}
|
||||
{{- $hosttype := promptChoiceOnce . "hosttype" "What type of host are you on" $choices -}}
|
||||
|
||||
encryption = "age"
|
||||
[age]
|
||||
identity = "~/.key.txt"
|
||||
recipient = "age1yd87u4ae86erpem2tynyl959ppc8a3jt4ztssykytzaklut6uvus5prt2t"
|
||||
[data]
|
||||
hostname = {{ $hostname | quote }}
|
||||
hosttype = {{- $hosttype | quote -}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue