From 550a45e957266a5fa24a702500fcd0bf73cfcde7 Mon Sep 17 00:00:00 2001 From: punkfairie <23287005+punkfairie@users.noreply.github.com> Date: Sat, 27 Apr 2024 15:53:34 -0700 Subject: [PATCH] Add .chezmoidata/gh-extensions.toml Add .config/gh/gh-extensions.fish Update .config/packages/arch-packages.fish --- .chezmoidata/gh-extensions.toml | 2 ++ dot_config/gh/run_onchange_gh-extensions.fish.tmpl | 10 ++++++++++ .../run_onchange_after_arch-packages.fish.tmpl | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .chezmoidata/gh-extensions.toml create mode 100644 dot_config/gh/run_onchange_gh-extensions.fish.tmpl diff --git a/.chezmoidata/gh-extensions.toml b/.chezmoidata/gh-extensions.toml new file mode 100644 index 0000000..7978c67 --- /dev/null +++ b/.chezmoidata/gh-extensions.toml @@ -0,0 +1,2 @@ +[packages.gh] +install = ["dlvhdr/gh-dash"] diff --git a/dot_config/gh/run_onchange_gh-extensions.fish.tmpl b/dot_config/gh/run_onchange_gh-extensions.fish.tmpl new file mode 100644 index 0000000..277e3aa --- /dev/null +++ b/dot_config/gh/run_onchange_gh-extensions.fish.tmpl @@ -0,0 +1,10 @@ +{{- if lookPath "gh" -}} +#!/usr/bin/env fish + +# {{ include ".chezmoidata/gh-extensions.toml" | sha256sum }} + +{{ range .packages.gh.install -}} +gh extension install {{ . }} +{{ end -}} + +{{- end -}} diff --git a/dot_config/packages/run_onchange_after_arch-packages.fish.tmpl b/dot_config/packages/run_onchange_after_arch-packages.fish.tmpl index 35b182e..ef33a58 100644 --- a/dot_config/packages/run_onchange_after_arch-packages.fish.tmpl +++ b/dot_config/packages/run_onchange_after_arch-packages.fish.tmpl @@ -1,4 +1,4 @@ -{{ if eq .chezmoi.osRelease.id "arch" -}} +{{ if lookPath "yay" -}} #!/usr/bin/env fish {{ range (glob ".config/packages/arch?*") -}}