Update bashrc

This commit is contained in:
Isaac Shoebottom 2025-03-12 12:21:35 -03:00
parent ac5879cead
commit 614b78873a

View File

@ -33,7 +33,7 @@ function .add {
chezmoi git status chezmoi git status
read -p "Commit changes? [y/N] " -r answer read -p "Commit changes? [y/N] " -r answer
if [[ $answer =~ ^[Yy]$ ]]; then if [[ $answer =~ ^[Yy]$ ]]; then
chezmoi git commit -- -am $2 chezmoi git -- commit -m "$2"
read -p "Push changes? [y/N] " -r answer read -p "Push changes? [y/N] " -r answer
if [[ $answer =~ ^[Yy]$ ]]; then if [[ $answer =~ ^[Yy]$ ]]; then
chezmoi git push chezmoi git push
@ -52,7 +52,7 @@ function .re-add {
chezmoi git diff chezmoi git diff
read -p "Commit changes? [y/N] " -r answer read -p "Commit changes? [y/N] " -r answer
if [[ $answer =~ ^[Yy]$ ]]; then if [[ $answer =~ ^[Yy]$ ]]; then
chezmoi git commit -- -am $1 chezmoi git -- commit -am "$1"
read -p "Push changes? [y/N] " -r answer read -p "Push changes? [y/N] " -r answer
if [[ $answer =~ ^[Yy]$ ]]; then if [[ $answer =~ ^[Yy]$ ]]; then
chezmoi git push chezmoi git push