adds git prompt sourcing
This commit is contained in:
parent
4ed7f90e84
commit
d380fdffa9
1 changed files with 3 additions and 0 deletions
|
|
@ -26,6 +26,7 @@
|
|||
'';
|
||||
|
||||
bashrcExtra = ''
|
||||
|
||||
# FNM
|
||||
eval "$(fnm env --use-on-cd --shell bash)"
|
||||
|
||||
|
|
@ -41,6 +42,8 @@
|
|||
if [ -n "$INSIDE_EMACS" ]; then
|
||||
PS1="[\u@\h:\w]\\$ "
|
||||
else
|
||||
source ~/.git-prompt.sh
|
||||
|
||||
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\] "
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue