Update dotfiles[0]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user