diff --git a/.zshrc b/.zshrc index 0f476d5..cb701b2 100644 --- a/.zshrc +++ b/.zshrc @@ -105,9 +105,9 @@ __get_Packager__() { alias remove="$_sudo nala purge" else alias search="apt-cache search" - alias install="$_sudo apt-get install --yes" - alias update="$_sudo apt-get update && $_sudo apt-get upgrade" - alias remove="$_sudo apt-get purge" + alias install="$_sudo apt install --yes" + alias update="$_sudo apt update && $_sudo apt upgrade" + alias remove="$_sudo apt purge" fi alias unbreak="$_sudo dpkg --configure -a" ;; @@ -412,9 +412,10 @@ __alias__() { # Check if there are any changes on the remote branch 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 commit -m "wip" + git commit -m "$commit_message" git push else echo "There are changes on the remote branch. Please pull the latest changes first."