|
|
|
|
25
|
fi
|
25
|
fi
|
26
|
|
26
|
|
27
|
configure_prompt() {
|
27
|
configure_prompt() {
|
28
|
- #prompt_symbol=㉿
|
|
|
29
|
prompt_symbol=@
|
28
|
prompt_symbol=@
|
30
|
# Skull emoji for root terminal
|
29
|
# Skull emoji for root terminal
|
31
|
- #[ "$EUID" -eq 0 ] && prompt_symbol=💀
|
|
|
|
|
30
|
+ [ "$EUID" -eq 0 ] && prompt_symbol='%F{white}☠%B%F{%(#.red.blue)}'
|
32
|
case "$PROMPT_ALTERNATIVE" in
|
31
|
case "$PROMPT_ALTERNATIVE" in
|
33
|
twoline)
|
32
|
twoline)
|
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 -n`%F{%(#.blue.green)}╚═%B%(#.%F{red}#.%F{blue}$)%b%F{reset} '
|
|
|
|
|
33
|
+ 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 -n`%F{%(#.blue.green)}└─%B%(#.%F{red}#.%F{blue}$)%b%F{reset} '
|
35
|
# Right-side prompt with exit codes and background processes
|
34
|
# 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}.)'
|
|
|
|
|
35
|
+ RPROMPT=$'%(?.. %? %F{red}%B⚡%b%F{reset})%(1j. %j %F{yellow}%B⚙%b%F{reset}.)'
|
37
|
;;
|
36
|
;;
|
38
|
oneline)
|
37
|
oneline)
|
39
|
PROMPT=$'${debian_chroot:+($debian_chroot)}${VIRTUAL_ENV:+($(basename $VIRTUAL_ENV))}%B%F{%(#.red.blue)}%n@%m%b%F{reset}:%B%F{%(#.blue.green)}%~%b%F{reset}%(#.#.$) '
|
38
|
PROMPT=$'${debian_chroot:+($debian_chroot)}${VIRTUAL_ENV:+($(basename $VIRTUAL_ENV))}%B%F{%(#.red.blue)}%n@%m%b%F{reset}:%B%F{%(#.blue.green)}%~%b%F{reset}%(#.#.$) '
|