at main 748 B view raw
1[data] 2{{ $machineTypeChoices := list "personal" "work" -}} 3{{ $machineType := promptChoiceOnce . "machineType" "Machine type" $machineTypeChoices -}} 4machineType = {{ $machineType | quote }} 5 6{{- if eq .chezmoi.os "linux" }} 7opDir = "/opt/1Password" 8{{ else if eq .chezmoi.os "darwin" }} 9opDir = "/Applications/1Password.app/Contents/MacOS" 10{{- end }} 11 12[data.git] 13{{ $gitName := promptStringOnce . "git.name" "Git name" -}} 14name = {{ $gitName | quote }} 15{{ $gitEmail := promptStringOnce . "git.email" "Git email" -}} 16email = {{ $gitEmail | quote }} 17{{ $sshSigningKeyOpId := promptStringOnce . "git.sshSigningKeyOpId" "1Password ID for SSH signing key (e.g. op://Private/abcd)" -}} 18sshSigningKeyOpId = {{ trimAll "\"" $sshSigningKeyOpId | quote }}