Update dotfiles/.local/share/chezmoi/home/.chezmoidata.yaml, dotfiles/.local/share/chezmoi/home/.chezmoiexternal.toml, dotfiles/.local/share/chezmoi/home/.chezmoi.toml.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoiignore, dotfiles/.local/share/chezmoi/home/run_once_provision, dotfiles/.local/share/chezmoi/home/run_once_before_install-software.sh.tmpl, dotfiles/.local/share/chezmoi/home/run_onchange_after_bash-completions, dotfiles/.local/share/chezmoi/home/run_onchange_after_crontab.tmpl, dotfiles/.local/share/chezmoi/home/run_update

Deleted dotfiles/.local/share/chezmoi/dot_editorconfig
This commit is contained in:
Brian Zalewski 2022-11-24 07:58:18 +00:00
parent 1c7f02fe6b
commit 40a22443c9
10 changed files with 17 additions and 19 deletions

View file

@ -1,15 +0,0 @@
# https://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.md]
insert_final_newline = false
trim_trailing_whitespace = false

View file

@ -1,8 +1,5 @@
{{- if eq .chezmoi.os "darwin" -}}
#!/bin/bash
brew bundle --no-lock --file=/dev/stdin <<EOF
brew "git"
cask "google-chrome"
EOF
echo "Run once before install software hook"
{{ end -}}

View file

@ -2,6 +2,8 @@
# Examples of /etc/os-release values https://gist.github.com/natefoo/814c5bf936922dad97ff
# Example fromJson with include from file https://github.com/twpayne/chezmoi/issues/1369
echo "Run once provision hook"
{{ $packageMap := (get .installerMap $packageName) }}
{{ if (hasKey $packageMap "_deps") }}
{{ $deps := (get $packageMap "_deps") }}

View file

@ -2,6 +2,8 @@
# {{ output "sha256sum" (joinPath .chezmoi.sourceDir ".chezmoidata.yaml") }}
echo "Run onchange after bash completions hook"
### Initialize
COMPLETION_DIR="$HOME/.local/share/bash-completion/completions"
mkdir -p "$COMPLETION_DIR"

View file

@ -2,4 +2,6 @@
# {{ output "sha256sum" (joinPath .chezmoi.sourceDir "private_dot_config/crontab/config") }}
echo "Run onchange after crontab hook"
crontab < "$XDG_CONFIG_HOME/crontab/config"

View file

@ -1,14 +1,24 @@
{{ if eq .chezmoi.os "linux" }}
#!/bin/sh
echo "Run update hook"
rm -rf ~/AppData
rm -rf ~/Library
sed -i 's/\.\/\.config\/taskfiles/taskfiles/g' ~/.local/Taskfile.yml
{{ else if .chezmoi.os "darwin" }}
#!/bin/sh
rm -rf ~/AppData
if command -v gsed > /dev/null; then
gsed -i 's/\.\/\.config\/taskfiles/taskfiles/g' ~/.local/Taskfile.yml
else
echo "Unable to fix ~/.local/Taskfile.yml because gsed GNU compatibility tool is not installed."
fi
{{ else if chezmoi.os "windows" }}
Remove-Item -LiteralPath "$env:HOMEPATH\Library" -Force -Recurse