|
|
|
|
31
|
case "$PROMPT_ALTERNATIVE" in
|
31
|
case "$PROMPT_ALTERNATIVE" in
|
32
|
twoline)
|
32
|
twoline)
|
33
|
export GIT_PROMPT_DETAILS="off"
|
33
|
export GIT_PROMPT_DETAILS="off"
|
34
|
- PROMPT=$'%F{%(#.blue.green)}┌──${debian_chroot:+($debian_chroot)─}${VIRTUAL_ENV:+($(basename $VIRTUAL_ENV))─}(%B%F{%(#.red.blue)}%n'$prompt_symbol$'%m%b%F{%(#.blue.green)})-[%B%F{reset}%(6~.%-1~/…/%4~.%5~)%b%F{%(#.blue.green)}]\n`giti -p`%F{%(#.blue.green)}└─%B%(#.%F{red}#.%F{blue}$)%b%F{reset} '
|
|
|
|
|
34
|
+ PROMPT=$'%F{%(#.blue.green)}┌──${debian_chroot:+($debian_chroot)─}${VIRTUAL_ENV:+($(basename $VIRTUAL_ENV))─}(%B%F{%(#.red.blue)}%n'$prompt_symbol$'%m%b%F{%(#.blue.green)})-[%B%F{reset}%(6~.%-1~/…/%4~.%5~)%b%F{%(#.blue.green)}]\n`giti -p`%F{%(#.blue.green)}└─%F{red}%(?.. %? %B⚡%b)%F{yellow}%(1j. %j %B⚙ %b%F{reset}.)%B%(#.%F{red}#.%F{blue}$)%b%F{reset} '
|
35
|
# Right-side prompt with exit codes and background processes
|
35
|
# Right-side prompt with exit codes and background processes
|
36
|
- RPROMPT=$'%(?.. %? %F{red}%B⚡%b%F{reset})%(1j. %j %F{yellow}%B⚙%b%F{reset}.)'
|
|
|
|
|
36
|
+ #RPROMPT=$'%(?.. %? %F{red}%B⚡%b%F{reset})%(1j. %j %F{yellow}%B⚙%b%F{reset}.)'
|
37
|
# Add mechanism to switch git details for prompt
|
37
|
# Add mechanism to switch git details for prompt
|
38
|
gitp() {
|
38
|
gitp() {
|
39
|
[[ "$GIT_PROMPT_DETAILS" == "on" ]] && export GIT_PROMPT_DETAILS="off" || export GIT_PROMPT_DETAILS="on"
|
39
|
[[ "$GIT_PROMPT_DETAILS" == "on" ]] && export GIT_PROMPT_DETAILS="off" || export GIT_PROMPT_DETAILS="on"
|