add script to import gpg key from 1p (done) and to install programs on different OS (todo)

This commit is contained in:
Anthony Rodriguez 2024-02-07 12:20:57 +01:00
parent 5252f2597b
commit 00f40a6d8a
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
2 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1,6 @@
#!/bin/sh
{{ if findExecutable "op" (list "/usr/bin" "/usr/local/bin") }}
echo '{{ onepasswordDocument "gpg key" }}' | gpg --import
{{ else }}
echo "WARNING: 1password-cli has not been installed on your system. Your gpg key will not be imported."
{{ end }}

View file

@ -0,0 +1,4 @@
#!/bin/sh
{{- if eq .chezmoi.osRelease.id "fedora" }}
# TODO: Install programs
{{ end }}