new bash settings from arch

This commit is contained in:
2026-06-26 20:00:41 -04:00
parent dae9e77fee
commit b0c0cfeb5a
3 changed files with 30 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
if [ -f "/usr/share/git/completion/git-prompt.sh" ]; then
source /usr/share/git/completion/git-prompt.sh
export GIT_PS1_SHOWDIRTYSTATE=1 # shows * if unstaged, + if staged
export GIT_PS1_SHOWSTASHSTATE=1 # shows $ if stashed
export GIT_PS1_SHOWUNTRACKEDFILES=1 # shows % if untracked files
export GIT_PS1_SHOWUPSTREAM="auto" # shows < > = behind/ahead/equal
export GIT_PS1_SHOWDIRTYSTATE=
export GIT_PS1_SHOWSTASHSTATE=
export GIT_PS1_SHOWUNTRACKEDFILES=
export GIT_PS1_SHOWUPSTREAM=
PS1='\[\e[32m\]\u@\h\[\e[0m\] \W$(__git_ps1) \$ '
else
printf "Cannot find /usr/share/git/completion/git-prompt.sh\n"
PS1='[\u@\h \W]\$ '
fi