Update 3 files

- /home/dot_config/task/Taskfile.yml
- /home/dot_local/bin/executable_install-program
- /software.yml
This commit is contained in:
Brian Zalewski 2023-04-15 23:34:26 +00:00
parent 877eddc184
commit 285d7ba92f
3 changed files with 94 additions and 5 deletions

View file

@ -41,6 +41,22 @@ tasks:
printf '%s' "$(echo "$selected" | jq -r '.login.password')" | $COPY printf '%s' "$(echo "$selected" | jq -r '.login.password')" | $COPY
brave:profile:backup: brave:profile:backup:
vars:
AppName: Brave Browser
RcloneRepository: brave
summary: |
# {{ .AppName }} Profile Backup
This command backups the {{ .AppName }} user data profile to an S3-backed Restic repository if the profile exists. If the repository
has not been initialized then it will initialize it. After you backup the profile, you can restore it with the
`{{ .RcloneRepository }}:profile:restore` command like so:
```
run {{ .RcloneRepository }}:profile:restore
```
The {{ .AppName }} backup is encrypted with the same key that Chezmoi uses (stored in `~/.config/age/chezmoi.txt`, by default).
The backup uses Restic so all the functionality that Restic offers is available with backups made by this command.
cmds: cmds:
- task: profile:backup - task: profile:backup
vars: vars:
@ -58,6 +74,22 @@ tasks:
RcloneRepository: brave RcloneRepository: brave
chrome:profile:backup: chrome:profile:backup:
vars:
AppName: Chrome
RcloneRepository: chrome
summary: |
# {{ .AppName }} Profile Backup
This command backups the {{ .AppName }} user data profile to an S3-backed Restic repository if the profile exists. If the repository
has not been initialized then it will initialize it. After you backup the profile, you can restore it with the
`{{ .RcloneRepository }}:profile:restore` command like so:
```
run {{ .RcloneRepository }}:profile:restore
```
The {{ .AppName }} backup is encrypted with the same key that Chezmoi uses (stored in `~/.config/age/chezmoi.txt`, by default).
The backup uses Restic so all the functionality that Restic offers is available with backups made by this command.
cmds: cmds:
- task: profile:backup - task: profile:backup
vars: vars:
@ -75,6 +107,22 @@ tasks:
RcloneRepository: chrome RcloneRepository: chrome
edge:profile:backup: edge:profile:backup:
vars:
AppName: Microsoft Edge
RcloneRepository: edge
summary: |
# {{ .AppName }} Profile Backup
This command backups the {{ .AppName }} user data profile to an S3-backed Restic repository if the profile exists. If the repository
has not been initialized then it will initialize it. After you backup the profile, you can restore it with the
`{{ .RcloneRepository }}:profile:restore` command like so:
```
run {{ .RcloneRepository }}:profile:restore
```
The {{ .AppName }} backup is encrypted with the same key that Chezmoi uses (stored in `~/.config/age/chezmoi.txt`, by default).
The backup uses Restic so all the functionality that Restic offers is available with backups made by this command.
cmds: cmds:
- task: profile:backup - task: profile:backup
vars: vars:
@ -93,14 +141,21 @@ tasks:
ferdium:profile:backup: ferdium:profile:backup:
desc: Imports the user's Ferdium profile from the CloudFlare R2 Restic repository for Ferdium desc: Imports the user's Ferdium profile from the CloudFlare R2 Restic repository for Ferdium
vars:
AppName: Ferdium
RcloneRepository: ferdium
summary: | summary: |
# Ferdium Profile Backup # {{ .AppName }} Profile Backup
This command backups the Ferdium profile to the S3-backed Restic repository, if the profile exists. If the repository This command backups the {{ .AppName }} user data profile to an S3-backed Restic repository if the profile exists. If the repository
has not been initialized then it will initialize it. After you backup the profile, you can restore it with the has not been initialized then it will initialize it. After you backup the profile, you can restore it with the
`ferdium:profile:restore` command. `{{ .RcloneRepository }}:profile:restore` command like so:
The Ferdium backup is encrypted with the same key that Chezmoi uses (stored in `~/.config/age/chezmoi.txt`, by default). ```
run {{ .RcloneRepository }}:profile:restore
```
The {{ .AppName }} backup is encrypted with the same key that Chezmoi uses (stored in `~/.config/age/chezmoi.txt`, by default).
The backup uses Restic so all the functionality that Restic offers is available with backups made by this command. The backup uses Restic so all the functionality that Restic offers is available with backups made by this command.
cmds: cmds:
- task: profile:backup - task: profile:backup
@ -130,6 +185,22 @@ tasks:
RcloneRepository: ferdium RcloneRepository: ferdium
firefox:profile:backup: firefox:profile:backup:
vars:
AppName: Firefox
RcloneRepository: firefox
summary: |
# {{ .AppName }} Profile Backup
This command backups the {{ .AppName }} user data profile to an S3-backed Restic repository if the profile exists. If the repository
has not been initialized then it will initialize it. After you backup the profile, you can restore it with the
`{{ .RcloneRepository }}:profile:restore` command like so:
```
run {{ .RcloneRepository }}:profile:restore
```
The {{ .AppName }} backup is encrypted with the same key that Chezmoi uses (stored in `~/.config/age/chezmoi.txt`, by default).
The backup uses Restic so all the functionality that Restic offers is available with backups made by this command.
cmds: cmds:
- task: profile:backup - task: profile:backup
vars: vars:
@ -157,6 +228,22 @@ tasks:
echo -e " \e[9mStrikethrough\e[0m" echo -e " \e[9mStrikethrough\e[0m"
librewolf:profile:backup: librewolf:profile:backup:
vars:
AppName: LibreWolf
RcloneRepository: librewolf
summary: |
# {{ .AppName }} Profile Backup
This command backups the {{ .AppName }} user data profile to an S3-backed Restic repository if the profile exists. If the repository
has not been initialized then it will initialize it. After you backup the profile, you can restore it with the
`{{ .RcloneRepository }}:profile:restore` command like so:
```
run {{ .RcloneRepository }}:profile:restore
```
The {{ .AppName }} backup is encrypted with the same key that Chezmoi uses (stored in `~/.config/age/chezmoi.txt`, by default).
The backup uses Restic so all the functionality that Restic offers is available with backups made by this command.
cmds: cmds:
- task: profile:backup - task: profile:backup
vars: vars:

View file

@ -588,6 +588,8 @@ async function afterInstall(packageManager) {
} else if (packageManager === 'basher') { } else if (packageManager === 'basher') {
} else if (packageManager === 'binary') { } else if (packageManager === 'binary') {
} else if (packageManager === 'brew' || packageManager === 'cask') { } else if (packageManager === 'brew' || packageManager === 'cask') {
log('info', logStage, `Ensuring Homebrew cleanup is run`)
await $`brew cleanup`
} else if (packageManager === 'cargo') { } else if (packageManager === 'cargo') {
} else if (packageManager === 'choco') { } else if (packageManager === 'choco') {
} else if (packageManager === 'crew') { } else if (packageManager === 'crew') {

View file

@ -7113,7 +7113,7 @@ softwarePackages:
_home: https://taskfile.dev _home: https://taskfile.dev
_name: Task _name: Task
_type: cli _type: cli
brew: go-task/tap/go-task brew: task
choco: go-task choco: go-task
github: github.com/go-task/task github: github.com/go-task/task
go: github.com/go-task/task/v3/cmd/task@latest go: github.com/go-task/task/v3/cmd/task@latest