diff --git a/Documents/PowerShell/Microsoft.PowerShell_profile.ps1 b/Documents/PowerShell/Microsoft.PowerShell_profile.ps1 index 521f3ae..fefbe93 100644 --- a/Documents/PowerShell/Microsoft.PowerShell_profile.ps1 +++ b/Documents/PowerShell/Microsoft.PowerShell_profile.ps1 @@ -42,12 +42,12 @@ if (Get-Command chezmoi -ErrorAction SilentlyContinue) { Write-Host "Usage: .add " 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