.bashrc
This commit is contained in:
parent
d2d54fbeea
commit
f5b8dd58f2
4
.bashrc
4
.bashrc
|
@ -10,11 +10,13 @@ alias cmatrix='cmatrix -cu3 -Cred'
|
||||||
alias gca='git add -u && git commit -m "Automatic add"'
|
alias gca='git add -u && git commit -m "Automatic add"'
|
||||||
alias watch='watch -cn.1'
|
alias watch='watch -cn.1'
|
||||||
alias push='git push origin master ; git push gitea master'
|
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'
|
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 () {
|
norminette () {
|
||||||
version="$($(type -P norminette) -v | cut -d" " -f2)"
|
version="$($(type -P norminette) -v | cut -d" " -f2)"
|
||||||
if [ ! "${version}" = "3.3.50" ]; then
|
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
|
fi
|
||||||
$(type -P norminette) -R CheckForbiddenSourceHeader "$@"
|
$(type -P norminette) -R CheckForbiddenSourceHeader "$@"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue