diff --git a/.bashrc b/.bashrc index 06b5612..7dcd442 100644 --- a/.bashrc +++ b/.bashrc @@ -22,6 +22,16 @@ xset r rate 200 60 PATH="${PATH}:/nfs/homes/tischmid/.local/bin" +if [ -f ~/git-prompt.sh ]; then + . ~/git-prompt.sh +else + : + # source <(curl -L 'https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh') +fi + +export GIT_PS1_SHOWDIRTYSTATE=1 +PS1='\[\033[31m\]\u\[\033[m\]@\[\033[32m\]\h\[\033[m\] \[\033[33m\]\w\[\033[m\]\[\033[35m\]$(__git_ps1 " (%s)")\[\033[m\]\n$ ' + ##----------------------------------------------------- ## synth-shell-greeter.sh if [ -f /nfs/homes/tischmid/.config/synth-shell/synth-shell-greeter.sh ] && [ -n "$( echo $- | grep i )" ]; then @@ -34,9 +44,7 @@ fi if [ -f /nfs/homes/tischmid/.config/synth-shell/synth-shell-prompt.sh ] && [ -n "$( echo $- | grep i )" ]; then : # source /nfs/homes/tischmid/.config/synth-shell/synth-shell-prompt.sh - # PS1='\[\033[31m\]\u\[\033[m\]@\[\033[32m\]\h\[\033[m\] \[\033[33m\]\w\[\033[m\]\n$ ' fi -PS1='\[\033[31m\]\u\[\033[m\]@\[\033[32m\]\h\[\033[m\] \[\033[33m\]\w\[\033[m\]\n$ ' ##----------------------------------------------------- ## better-ls