Browse Source

single lines for kali_prompt and symbols added for kali prompt

master
Dirk Alders 1 year ago
parent
commit
200a6d0402
2 changed files with 4 additions and 5 deletions
  1. 3
    4
      .zshrc.d/__available__/prompt_kali.zsh
  2. 1
    1
      bin

+ 3
- 4
.zshrc.d/__available__/prompt_kali.zsh View File

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}%(#.#.$) '

+ 1
- 1
bin

1
-Subproject commit 6326de2e697a0a13b8f631684030bb647ee21781
1
+Subproject commit c37533ea58569bb64fae58b5d40c3fdd6695a884

Loading…
Cancel
Save