diff --git a/.bash_extra b/.bash_extra index cb61dca..f1c8ee8 100644 --- a/.bash_extra +++ b/.bash_extra @@ -12,7 +12,7 @@ eval "$(keychain -q --eval --timeout 60 --agents ssh)" export GIT_PS1_SHOWUNTRACKEDFILES=1 export GIT_PS1_SHOWDIRTYSTATE=1 export GIT_PS1_SHOWSTASHSTATE=1 -export PS1='\n\[\e[34m\]\u@\[\e[34m\]\h \[\e[94m\]\w\[\e[33m\]$(__git_ps1) \[\e[94m\]\n> \[\e[39m\]' +export PS1='\n\[\e[34m\]\u@\[\e[34m\]\h \[\e[94m\]\w\[\e[33m\]$(__git_ps1) \[\e[94m\]\[\e[35m\]$(code=${?##0};echo ${code:+[${code}]})\[\e[39m\]\n> ' #\e[34m \u @ \e[34m \h \e[37m \e[94m \w \e[33m $(__git_ps1) \e[94m \n> \e[39m #Blau User @ Bue Hostname Light Gray LightBlue Verzeichnis Yellow Git-Script LightBlue Zeilenumbruch Standard-Vordergrund-Farbe @@ -21,6 +21,7 @@ export PS1='\n\[\e[34m\]\u@\[\e[34m\]\h \[\e[94m\]\w\[\e[33m\]$(__git_ps1) \[\e[ # https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh # https://gist.github.com/justintv/168835 # https://misc.flogisoft.com/bash/tip_colors_and_formatting +# Zeige letzte Exit-Code: https://stackoverflow.com/questions/16715103/bash-prompt-with-the-last-exit-code ### Praktische Dinge # Deaktiviere FlowControl