bash: extras erstellt + PS1
This commit is contained in:
parent
2c4fdce982
commit
73957e863e
2 changed files with 19 additions and 3 deletions
19
.bash_extra
Normal file
19
.bash_extra
Normal file
|
@ -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
|
|
@ -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*"
|
||||
|
|
Loading…
Reference in a new issue