From 73957e863e743ca00b2e1a4ebe3690a76fe35f1d Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 20 Aug 2021 22:47:38 +0200 Subject: [PATCH] bash: extras erstellt + PS1 --- .bash_extra | 19 +++++++++++++++++++ .bash_functions | 3 --- 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 .bash_extra diff --git a/.bash_extra b/.bash_extra new file mode 100644 index 0000000..179acee --- /dev/null +++ b/.bash_extra @@ -0,0 +1,19 @@ +# 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 +export GIT_PS1_SHOWDIRTYSTATE=1 +export GIT_PS1_SHOWSTASHSTATE=1 +export PS1='\e[34m\u@\e[34m\h \e[37m\A \e[94m\w\e[33m$(__git_ps1) \e[94m\n> \e[39m' + +#\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 Standard-Vordergrund-Farbe + +# Deaktiviere FlowControl +# https://unix.stackexchange.com/questions/332791/how-to-permanently-disable-ctrl-s-in-terminal +stty -ixon diff --git a/.bash_functions b/.bash_functions index 8ef3e63..84c5775 100644 --- a/.bash_functions +++ b/.bash_functions @@ -1,6 +1,3 @@ -# deaktiviert Flow-Control -# https://unix.stackexchange.com/questions/332791/how-to-permanently-disable-ctrl-s-in-terminal -stty -ixon # rg, gibt nur Dateipfade aus, sucht nur nach Dateinamen function rgf { rg --files -g "*$1*"