Update dotfiles[0]

This commit is contained in:
2026-03-24 12:56:23 -03:00
parent 3d52c7f16f
commit fb95fd6043

View File

@@ -42,12 +42,12 @@ if (Get-Command chezmoi -ErrorAction SilentlyContinue) {
Write-Host "Usage: .add <file> <message>"
return
}
chezmoi add "$args[0]"
chezmoi add "$($args[0])"
chezmoi add .
chezmoi git status
$answer = Read-Host "Commit changes? [y/N]"
if ($answer -eq "y" -or $answer -eq "Y") {
chezmoi git -- commit -m "$args[1]"
chezmoi git -- commit -m "$($args[1])"
$answer = Read-Host "Push changes? [y/N]"
if ($answer -eq "y" -or $answer -eq "Y") {
chezmoi git push
@@ -64,7 +64,7 @@ if (Get-Command chezmoi -ErrorAction SilentlyContinue) {
chezmoi git diff
$answer = Read-Host "Commit changes? [y/N]"
if ($answer -eq "y" -or $answer -eq "Y") {
chezmoi git -- commit -am `$args[0]`
chezmoi git -- commit -am "$($args[0])"
$answer = Read-Host "Push changes? [y/N]"
if ($answer -eq "y" -or $answer -eq "Y") {
chezmoi git push