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?*") -}}