44d8c6f774
Deleted dotfiles/.local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_after_20_install-helm-plugins.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_after_30_install-krew-plugins.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_after_40_install-rust-toolchain.tmpl
29 lines
812 B
Text
29 lines
812 B
Text
{{ if or (eq .chezmoi.os "linux") (eq .chezmoi.os "darwin") }}
|
|
#!/bin/sh
|
|
|
|
echo "Run update hook"
|
|
|
|
rm -rf ~/AppData
|
|
{{ if or (eq .chezmoi.os "linux") }}
|
|
rm -rf ~/Library
|
|
{{ end }}
|
|
|
|
if [ -d "$HOME/.local/shared-common" ]; then
|
|
cp ~/.local/shared-common/Taskfile.yml ~/.local/Taskfile.yml
|
|
sed -i 's/\.\/\.config\/taskfiles/taskfiles/g' ~/.local/Taskfile.yml
|
|
ln -s ~/.local/taskfiles ~/.local/shared-common/common/.config/taskfiles
|
|
fi
|
|
|
|
{{ if (eq .chezmoi.os "darwin") }}
|
|
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
|
|
{{ end }}
|
|
|
|
{{ else if chezmoi.os "windows" }}
|
|
|
|
Remove-Item -LiteralPath "$env:HOMEPATH\Library" -Force -Recurse
|
|
|
|
{{ end }}
|