Automatic add

This commit is contained in:
Timo Schmidt 2023-05-09 02:01:38 +02:00
commit 11ac4d2344
1 changed files with 16 additions and 16 deletions

32
.bashrc
View File

@ -1,4 +1,4 @@
alias bsq='cd /nfs/homes/tischmid/repos/piscine/bsq && zellij' alias bsq='cd ~/repos/piscine/bsq && zellij'
alias l='ls -lArthF --color=auto' alias l='ls -lArthF --color=auto'
alias v='vim' alias v='vim'
alias ..='cd ..' alias ..='cd ..'
@ -11,8 +11,8 @@ alias cmatrix='cmatrix -u3 -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 francinette=~/francinette/tester.sh
alias paco=/nfs/homes/tischmid/francinette/tester.sh alias paco=~/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'
alias AH='cd /nfs/homes/tischmid/repos/42cursus/libft' alias AH='cd /nfs/homes/tischmid/repos/42cursus/libft'
alias z='\zellij options --disable-mouse-mode' alias z='\zellij options --disable-mouse-mode'
@ -81,11 +81,11 @@ jmp () {
xset r rate 200 60 xset r rate 200 60
PATH="${PATH}:/nfs/homes/tischmid/.local/bin" PATH="${PATH}:~/.local/bin"
GIT_PROMPT="1" GIT_PROMPT="1"
if [ ! -f ~/git-prompt.sh ] && [ "${GIT_PROMPT}" = "1" ] ; then if [ ! -f ~/git-prompt.sh ] && [ "${GIT_PROMPT}" = "1" ] ; then
curl --silent --location 'https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh' -o "/nfs/homes/tischmid/git-prompt.sh" curl --silent --location 'https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh' -o ~/git-prompt.sh
fi fi
__norm () { __norm () {
@ -94,7 +94,7 @@ __norm () {
return 0 return 0
} }
if [ "${GIT_PROMPT}" = "1" ] ; then if [ -f ~/git-prompt.sh ] && [ "${GIT_PROMPT}" = "1" ] ; then
. ~/git-prompt.sh . ~/git-prompt.sh
export GIT_PS1_SHOWDIRTYSTATE=1 export GIT_PS1_SHOWDIRTYSTATE=1
PS1='\[\033[31m\]\u\[\033[m\]@\[\033[32m\]\h\[\033[m\] \[\033[33m\][\w]\[\033[m\]\[\033[36m\]$(__git_ps1 " (%s)")\[\033[m\]\[\033[36m\]$(__norm)\[\033[m\]\n\[\033[35m\]~>\[\033[m\] ' PS1='\[\033[31m\]\u\[\033[m\]@\[\033[32m\]\h\[\033[m\] \[\033[33m\][\w]\[\033[m\]\[\033[36m\]$(__git_ps1 " (%s)")\[\033[m\]\[\033[36m\]$(__norm)\[\033[m\]\n\[\033[35m\]~>\[\033[m\] '
@ -104,35 +104,35 @@ fi
##----------------------------------------------------- ##-----------------------------------------------------
## synth-shell-greeter.sh ## synth-shell-greeter.sh
if [ -f /nfs/homes/tischmid/.config/synth-shell/synth-shell-greeter.sh ] && [ -n "$( echo $- | grep i )" ] ; then if [ -f ~/.config/synth-shell/synth-shell-greeter.sh ] && [ -n "$( echo $- | grep i )" ] ; then
: :
# source /nfs/homes/tischmid/.config/synth-shell/synth-shell-greeter.sh # source ~/.config/synth-shell/synth-shell-greeter.sh
fi fi
##----------------------------------------------------- ##-----------------------------------------------------
## synth-shell-prompt.sh ## synth-shell-prompt.sh
if [ -f /nfs/homes/tischmid/.config/synth-shell/synth-shell-prompt.sh ] && [ -n "$( echo $- | grep i )" ] ; then if [ -f ~/.config/synth-shell/synth-shell-prompt.sh ] && [ -n "$( echo $- | grep i )" ] ; then
: :
# source /nfs/homes/tischmid/.config/synth-shell/synth-shell-prompt.sh # source ~/.config/synth-shell/synth-shell-prompt.sh
fi fi
##----------------------------------------------------- ##-----------------------------------------------------
## better-ls ## better-ls
if [ -f /nfs/homes/tischmid/.config/synth-shell/better-ls.sh ] && [ -n "$( echo $- | grep i )" ] ; then if [ -f ~/.config/synth-shell/better-ls.sh ] && [ -n "$( echo $- | grep i )" ] ; then
: :
# source /nfs/homes/tischmid/.config/synth-shell/better-ls.sh # source ~/.config/synth-shell/better-ls.sh
fi fi
##----------------------------------------------------- ##-----------------------------------------------------
## alias ## alias
if [ -f /nfs/homes/tischmid/.config/synth-shell/alias.sh ] && [ -n "$( echo $- | grep i )" ] ; then if [ -f ~/.config/synth-shell/alias.sh ] && [ -n "$( echo $- | grep i )" ] ; then
source /nfs/homes/tischmid/.config/synth-shell/alias.sh source ~/.config/synth-shell/alias.sh
fi fi
##----------------------------------------------------- ##-----------------------------------------------------
## better-history ## better-history
if [ -f /nfs/homes/tischmid/.config/synth-shell/better-history.sh ] && [ -n "$( echo $- | grep i )" ] ; then if [ -f ~/.config/synth-shell/better-history.sh ] && [ -n "$( echo $- | grep i )" ] ; then
source /nfs/homes/tischmid/.config/synth-shell/better-history.sh source ~/.config/synth-shell/better-history.sh
fi fi
check () { check () {