Automatic add
This commit is contained in:
commit
11ac4d2344
32
.bashrc
32
.bashrc
|
@ -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 v='vim'
|
||||
alias ..='cd ..'
|
||||
|
@ -11,8 +11,8 @@ alias cmatrix='cmatrix -u3 -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 francinette=~/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 AH='cd /nfs/homes/tischmid/repos/42cursus/libft'
|
||||
alias z='\zellij options --disable-mouse-mode'
|
||||
|
@ -81,11 +81,11 @@ jmp () {
|
|||
|
||||
xset r rate 200 60
|
||||
|
||||
PATH="${PATH}:/nfs/homes/tischmid/.local/bin"
|
||||
PATH="${PATH}:~/.local/bin"
|
||||
|
||||
GIT_PROMPT="1"
|
||||
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
|
||||
|
||||
__norm () {
|
||||
|
@ -94,7 +94,7 @@ __norm () {
|
|||
return 0
|
||||
}
|
||||
|
||||
if [ "${GIT_PROMPT}" = "1" ] ; then
|
||||
if [ -f ~/git-prompt.sh ] && [ "${GIT_PROMPT}" = "1" ] ; then
|
||||
. ~/git-prompt.sh
|
||||
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\] '
|
||||
|
@ -104,35 +104,35 @@ fi
|
|||
|
||||
##-----------------------------------------------------
|
||||
## 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
|
||||
|
||||
##-----------------------------------------------------
|
||||
## 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
|
||||
|
||||
##-----------------------------------------------------
|
||||
## 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
|
||||
|
||||
##-----------------------------------------------------
|
||||
## alias
|
||||
if [ -f /nfs/homes/tischmid/.config/synth-shell/alias.sh ] && [ -n "$( echo $- | grep i )" ] ; then
|
||||
source /nfs/homes/tischmid/.config/synth-shell/alias.sh
|
||||
if [ -f ~/.config/synth-shell/alias.sh ] && [ -n "$( echo $- | grep i )" ] ; then
|
||||
source ~/.config/synth-shell/alias.sh
|
||||
fi
|
||||
|
||||
##-----------------------------------------------------
|
||||
## better-history
|
||||
if [ -f /nfs/homes/tischmid/.config/synth-shell/better-history.sh ] && [ -n "$( echo $- | grep i )" ] ; then
|
||||
source /nfs/homes/tischmid/.config/synth-shell/better-history.sh
|
||||
if [ -f ~/.config/synth-shell/better-history.sh ] && [ -n "$( echo $- | grep i )" ] ; then
|
||||
source ~/.config/synth-shell/better-history.sh
|
||||
fi
|
||||
|
||||
check () {
|
||||
|
|
Loading…
Reference in New Issue