From ffe66dae7477787865f70b585b4fe62556d95ec3 Mon Sep 17 00:00:00 2001 From: Timo Schmidt Date: Tue, 28 Mar 2023 15:06:19 +0200 Subject: [PATCH] Automatic add --- .bashrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.bashrc b/.bashrc index 06c2372..9fec6a0 100644 --- a/.bashrc +++ b/.bashrc @@ -7,7 +7,7 @@ alias ft='cc -Wall -Wextra -Werror -o main -xc -- <(grep -v "////" *.c) && ./mai alias ft2='cc -Wall -Wextra -Werror -o main -xc -- <(grep -v "////" *.c) && ./main' alias git='EDITOR=vim git' alias cmatrix='cmatrix -cu3 -Cred' -alias gca='git add -u && git commit -m *' +alias gca='git add -u && git commit -m "Automatic add"' alias watch='watch -cn.1' alias push='git push origin master ; git push gitea master' alias norm='alacritty -e sh -c '\''git rev-parse --show-toplevel || { echo "Exiting in 5" ; sleep 1 ; echo "Exiting in 4" ; sleep 1 ; echo "Exiting in 3" ; sleep 1 ; echo "Exiting in 2" ; sleep 1 ; echo "Exiting in 1" ; sleep 1 ; } && cd "$(git rev-parse --show-toplevel)" && watch -cn.5 date \&\& norminette -R CheckForbiddenSourceHeader'\'' & disown' @@ -80,12 +80,12 @@ check () { # Only proceed if clone success if [ -d "${DIR}" ] ; then # Check the norm and print beautiful message - norminette "${DIR}" && printf '\033[30 ;102m%s\033[m\n' "Norminette success" || printf '\033[30 ;101m%s\033[m\n' "Norminette fail!!!" + norminette "${DIR}" && printf '\033[30;102m%s\033[m\n' "Norminette success" || printf '\033[30;101m%s\033[m\n' "Norminette fail!!!" # Remove temp folder rm -rf "${DIR}" else - printf '\033[30 ;101m%s\033[m\n' "Could not clone the repo" + printf '\033[30;101m%s\033[m\n' "Could not clone the repo" fi }