2021-08-20 22:47:38 +02:00
|
|
|
# PS1
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# git-symbole
|
|
|
|
# * unstaged
|
|
|
|
# + staged
|
|
|
|
# $ stashed
|
2021-08-20 23:14:19 +02:00
|
|
|
# % untracked
|
|
|
|
export GIT_PS1_SHOWUNTRACKEDFILES=1
|
2021-08-20 22:47:38 +02:00
|
|
|
export GIT_PS1_SHOWDIRTYSTATE=1
|
|
|
|
export GIT_PS1_SHOWSTASHSTATE=1
|
2021-09-13 19:28:20 +02:00
|
|
|
export PS1='\n\[\e[34m\]\u@\[\e[34m\]\h \[\e[37m\]\A \[\e[94m\]\w\[\e[33m\]$(__git_ps1) \[\e[94m\]\n> \[\e[39m\]'
|
2021-08-20 22:47:38 +02:00
|
|
|
|
2021-08-20 22:57:15 +02:00
|
|
|
#\e[34m \u @ \e[34m \h \e[37m \A \e[94m \w \e[33m $(__git_ps1) \e[94m \n> \e[39m
|
|
|
|
#Blau User @ Bue Hostname Light Gray HH:MM LightBlue Verzeichnis Yellow Git-Script LightBlue Zeilenumbruch Standard-Vordergrund-Farbe
|
2021-08-23 12:28:24 +02:00
|
|
|
# https://unix.stackexchange.com/questions/105958/terminal-prompt-not-wrapping-correctly
|
|
|
|
# alle Farben sind mit \[<wert>\] escaped, sonst kann die shelle die länge nicht richtig ausrechnen
|
2021-08-20 22:47:38 +02:00
|
|
|
|
|
|
|
# Deaktiviere FlowControl
|
|
|
|
# https://unix.stackexchange.com/questions/332791/how-to-permanently-disable-ctrl-s-in-terminal
|
|
|
|
stty -ixon
|
2021-08-24 11:44:24 +02:00
|
|
|
# farben fur manpages
|
|
|
|
# https://opensource.com/article/18/5/bash-tricks
|
|
|
|
export LESS_TERMCAP_mb=$'\E[01;31m'
|
|
|
|
export LESS_TERMCAP_md=$'\E[01;33m'
|
|
|
|
export LESS_TERMCAP_me=$'\E[0m'
|
|
|
|
export LESS_TERMCAP_se=$'\E[0m'
|
|
|
|
export LESS_TERMCAP_so=$'\E[01;42;30m'
|
|
|
|
export LESS_TERMCAP_ue=$'\E[0m'
|
|
|
|
export LESS_TERMCAP_us=$'\E[01;36m'
|