diff --git a/.zsh/.aliases.zsh b/.zsh/.aliases.zsh index e8b1a00..3f1e52a 100644 --- a/.zsh/.aliases.zsh +++ b/.zsh/.aliases.zsh @@ -524,7 +524,7 @@ __git__() { fi case $commit_files in - .) commit_message="wip" ;; + ./.) commit_message="wip" ;; *) echo "${GREEN}Committed files/folders: ${BOLD}${commit_files[*]}${NC}" ;; @@ -545,6 +545,11 @@ __git__() { fi git commit -m "${commit_message:-wip}" git push + else + echo "${RED}${BOLD}There was something wrong with:${NC}" + echo "${YELLOW}- commit-files '$commit_files'" + echo "or.." + echo "${YELLOW}- commit-message '$commit_message'${NC}" fi else echo "${RED}${BOLD}There are changes on the remote branch. Please pull the latest changes first.${NC}"