changed apt-get to apt and addet custom commit message for wip

This commit is contained in:
pika 2025-03-27 10:37:07 +01:00
parent c9fbbf042f
commit 230877740a

11
.zshrc
View file

@ -105,9 +105,9 @@ __get_Packager__() {
alias remove="$_sudo nala purge" alias remove="$_sudo nala purge"
else else
alias search="apt-cache search" alias search="apt-cache search"
alias install="$_sudo apt-get install --yes" alias install="$_sudo apt install --yes"
alias update="$_sudo apt-get update && $_sudo apt-get upgrade" alias update="$_sudo apt update && $_sudo apt upgrade"
alias remove="$_sudo apt-get purge" alias remove="$_sudo apt purge"
fi fi
alias unbreak="$_sudo dpkg --configure -a" alias unbreak="$_sudo dpkg --configure -a"
;; ;;
@ -412,9 +412,10 @@ __alias__() {
# Check if there are any changes on the remote branch # Check if there are any changes on the remote branch
if git diff --quiet "$branch" "origin/$branch"; then if git diff --quiet "$branch" "origin/$branch"; then
echo "No changes on the remote branch. Adding changes and pushing with 'wip' commit." local commit_message="${1:-wip}"
echo "No changes on the remote branch. Adding changes and pushing with '$commit_message' commit."
git add . git add .
git commit -m "wip" git commit -m "$commit_message"
git push git push
else else
echo "There are changes on the remote branch. Please pull the latest changes first." echo "There are changes on the remote branch. Please pull the latest changes first."