This commit is contained in:
Timo Schmidt 2023-03-28 23:34:13 +02:00
parent d2d54fbeea
commit f5b8dd58f2
1 changed files with 3 additions and 1 deletions

View File

@ -10,11 +10,13 @@ alias cmatrix='cmatrix -cu3 -Cred'
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 francinette=/nfs/homes/tischmid/francinette/tester.sh
alias paco=/nfs/homes/tischmid/francinette/tester.sh
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'
norminette () {
version="$($(type -P norminette) -v | cut -d" " -f2)"
if [ ! "${version}" = "3.3.50" ]; then
printf "%s\n" "Your norminette version is not 3.3.50, but ${version}, which will not catch some indentation errors. Please up-/downgrade. Exiting"
printf "%s\n" "Your norminette version is not 3.3.50, but ${version}, which will not catch some indentation errors. Please up-/downgrade"
fi
$(type -P norminette) -R CheckForbiddenSourceHeader "$@"
}