adds git prompt sourcing

This commit is contained in:
Dennis Schoepf 2025-09-21 21:43:21 +02:00
parent 4ed7f90e84
commit d380fdffa9

View file

@ -26,6 +26,7 @@
''; '';
bashrcExtra = '' bashrcExtra = ''
# FNM # FNM
eval "$(fnm env --use-on-cd --shell bash)" eval "$(fnm env --use-on-cd --shell bash)"
@ -41,6 +42,8 @@
if [ -n "$INSIDE_EMACS" ]; then if [ -n "$INSIDE_EMACS" ]; then
PS1="[\u@\h:\w]\\$ " PS1="[\u@\h:\w]\\$ "
else else
source ~/.git-prompt.sh
PROMPT_COMMAND="PS1_CMD1=$(__git_ps1 "(%s)")"; PROMPT_COMMAND="PS1_CMD1=$(__git_ps1 "(%s)")";
PS1="\[\e[95m\]\u\[\e[35m\]@\h\[\e[0m\] \[\e[96m\]\w\[\e[0m\] \[\e[95m\]$PS1_CMD1\n\[\e[96m\]λ\[\e[0m\] " PS1="\[\e[95m\]\u\[\e[35m\]@\h\[\e[0m\] \[\e[96m\]\w\[\e[0m\] \[\e[95m\]$PS1_CMD1\n\[\e[96m\]λ\[\e[0m\] "
fi fi