Skip to content

Commit

Permalink
feat(just): add ~/.justfile (only ublue support today)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottames committed Nov 4, 2023
1 parent c40e018 commit a61c8e3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions home/dot_justfile.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{{- if lstat "/usr/share/ublue-os/justfile" -}}
!include /usr/share/ublue-os/justfile

{{ end -}}
# update system
update:
{{- if eq .chezmoi.osRelease.variant "Silverblue" }}
@echo '=> Updating rpm-ostree...'
rpm-ostree update
@echo '=> Updating flatpaks...'
flatpak update -y
@echo "=> Assembling and replacing distroboxes from ${HOME}/.config/distrobox/assemble.ini..."
distrobox assemble create --replace --file "${HOME}/.config/distrobox/assemble.ini"
@"${HOME}/.config/distrobox/exports.sh"
{{- else }}
@echo "=> No update available for {{ .chezmoi.os }}"
{{- end }}

0 comments on commit a61c8e3

Please sign in to comment.