update editor settings

This commit is contained in:
2026-06-26 20:50:35 -04:00
parent 0bddedc48d
commit 46d127f057
4 changed files with 57 additions and 19 deletions
+9 -11
View File
@@ -1,16 +1,14 @@
# Git + Colorful Prompt
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) \$ '
export GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWSTASHSTATE=1
export GIT_PS1_SHOWUNTRACKEDFILES=1
export GIT_PS1_SHOWUPSTREAM="auto"
# Bright green user@host (what you liked)
PS1='\[\e[1;38;5;46m\]\u@\h\[\e[0m\] \[\e[38;5;51m\]\w\[\e[0m\]\[\e[90m\]$(__git_ps1 " (%s)")\[\e[0m\] \$ '
else
printf "Cannot find /usr/share/git/completion/git-prompt.sh\n"
PS1='[\u@\h \W]\$ '
PS1='\[\e[1;38;5;46m\]\u@\h\[\e[0m\] \[\e[38;5;51m\]\w\[\e[0m\] \$ '
fi