PS1
Signed-off-by: mg <michael.grote@posteo.de>
This commit is contained in:
parent
5257070e3a
commit
563a635fbd
1 changed files with 2 additions and 1 deletions
|
@ -12,7 +12,7 @@ eval "$(keychain -q --eval --timeout 60 --agents ssh)"
|
||||||
export GIT_PS1_SHOWUNTRACKEDFILES=1
|
export GIT_PS1_SHOWUNTRACKEDFILES=1
|
||||||
export GIT_PS1_SHOWDIRTYSTATE=1
|
export GIT_PS1_SHOWDIRTYSTATE=1
|
||||||
export GIT_PS1_SHOWSTASHSTATE=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
|
#\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
|
#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://github.com/git/git/blob/master/contrib/completion/git-prompt.sh
|
||||||
# https://gist.github.com/justintv/168835
|
# https://gist.github.com/justintv/168835
|
||||||
# https://misc.flogisoft.com/bash/tip_colors_and_formatting
|
# 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
|
### Praktische Dinge
|
||||||
# Deaktiviere FlowControl
|
# Deaktiviere FlowControl
|
||||||
|
|
Loading…
Reference in a new issue