From 00f40a6d8a2180cc35a46dbff52a944c116580f6 Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Wed, 7 Feb 2024 12:20:57 +0100 Subject: [PATCH] add script to import gpg key from 1p (done) and to install programs on different OS (todo) --- run_once_import_gpg_from_1password.sh.tmpl | 6 ++++++ run_once_install_programs.sh.tmpl | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 run_once_import_gpg_from_1password.sh.tmpl create mode 100644 run_once_install_programs.sh.tmpl diff --git a/run_once_import_gpg_from_1password.sh.tmpl b/run_once_import_gpg_from_1password.sh.tmpl new file mode 100644 index 0000000..e1326f0 --- /dev/null +++ b/run_once_import_gpg_from_1password.sh.tmpl @@ -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 }} diff --git a/run_once_install_programs.sh.tmpl b/run_once_install_programs.sh.tmpl new file mode 100644 index 0000000..bdd76c7 --- /dev/null +++ b/run_once_install_programs.sh.tmpl @@ -0,0 +1,4 @@ +#!/bin/sh +{{- if eq .chezmoi.osRelease.id "fedora" }} +# TODO: Install programs +{{ end }}