Преглед изворни кода

color prompt extracted from kali prompt

master
Dirk Alders пре 1 година
родитељ
комит
f834b98ea2
2 измењених фајлова са 46 додато и 47 уклоњено
  1. 46
    0
      zshrc.d/__available__/prompt_color.zsh
  2. 0
    47
      zshrc.d/__available__/prompt_kali.zsh

+ 46
- 0
zshrc.d/__available__/prompt_color.zsh Прегледај датотеку

@@ -0,0 +1,46 @@
1
+# enable syntax-highlighting
2
+if [ -f /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]; then
3
+    . /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
4
+    ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern)
5
+    ZSH_HIGHLIGHT_STYLES[default]=none
6
+    ZSH_HIGHLIGHT_STYLES[unknown-token]=fg=white,underline
7
+    ZSH_HIGHLIGHT_STYLES[reserved-word]=fg=cyan,bold
8
+    ZSH_HIGHLIGHT_STYLES[suffix-alias]=fg=green,underline
9
+    ZSH_HIGHLIGHT_STYLES[global-alias]=fg=green,bold
10
+    ZSH_HIGHLIGHT_STYLES[precommand]=fg=green,underline
11
+    ZSH_HIGHLIGHT_STYLES[commandseparator]=fg=blue,bold
12
+    ZSH_HIGHLIGHT_STYLES[autodirectory]=fg=green,underline
13
+    ZSH_HIGHLIGHT_STYLES[path]=bold
14
+    ZSH_HIGHLIGHT_STYLES[path_pathseparator]=
15
+    ZSH_HIGHLIGHT_STYLES[path_prefix_pathseparator]=
16
+    ZSH_HIGHLIGHT_STYLES[globbing]=fg=blue,bold
17
+    ZSH_HIGHLIGHT_STYLES[history-expansion]=fg=blue,bold
18
+    ZSH_HIGHLIGHT_STYLES[command-substitution]=none
19
+    ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter]=fg=magenta,bold
20
+    ZSH_HIGHLIGHT_STYLES[process-substitution]=none
21
+    ZSH_HIGHLIGHT_STYLES[process-substitution-delimiter]=fg=magenta,bold
22
+    ZSH_HIGHLIGHT_STYLES[single-hyphen-option]=fg=green
23
+    ZSH_HIGHLIGHT_STYLES[double-hyphen-option]=fg=green
24
+    ZSH_HIGHLIGHT_STYLES[back-quoted-argument]=none
25
+    ZSH_HIGHLIGHT_STYLES[back-quoted-argument-delimiter]=fg=blue,bold
26
+    ZSH_HIGHLIGHT_STYLES[single-quoted-argument]=fg=yellow
27
+    ZSH_HIGHLIGHT_STYLES[double-quoted-argument]=fg=yellow
28
+    ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument]=fg=yellow
29
+    ZSH_HIGHLIGHT_STYLES[rc-quote]=fg=magenta
30
+    ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]=fg=magenta,bold
31
+    ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]=fg=magenta,bold
32
+    ZSH_HIGHLIGHT_STYLES[back-dollar-quoted-argument]=fg=magenta,bold
33
+    ZSH_HIGHLIGHT_STYLES[assign]=none
34
+    ZSH_HIGHLIGHT_STYLES[redirection]=fg=blue,bold
35
+    ZSH_HIGHLIGHT_STYLES[comment]=fg=black,bold
36
+    ZSH_HIGHLIGHT_STYLES[named-fd]=none
37
+    ZSH_HIGHLIGHT_STYLES[numeric-fd]=none
38
+    ZSH_HIGHLIGHT_STYLES[arg0]=fg=cyan
39
+    ZSH_HIGHLIGHT_STYLES[bracket-error]=fg=red,bold
40
+    ZSH_HIGHLIGHT_STYLES[bracket-level-1]=fg=blue,bold
41
+    ZSH_HIGHLIGHT_STYLES[bracket-level-2]=fg=green,bold
42
+    ZSH_HIGHLIGHT_STYLES[bracket-level-3]=fg=magenta,bold
43
+    ZSH_HIGHLIGHT_STYLES[bracket-level-4]=fg=yellow,bold
44
+    ZSH_HIGHLIGHT_STYLES[bracket-level-5]=fg=cyan,bold
45
+    ZSH_HIGHLIGHT_STYLES[cursor-matchingbracket]=standout
46
+fi

+ 0
- 47
zshrc.d/__available__/prompt_kali.zsh Прегледај датотеку

@@ -59,53 +59,6 @@ if [ "$color_prompt" = yes ]; then
59 59
     VIRTUAL_ENV_DISABLE_PROMPT=1
60 60
 
61 61
     configure_prompt
62
-
63
-    # enable syntax-highlighting
64
-    if [ -f /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]; then
65
-        . /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
66
-        ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern)
67
-        ZSH_HIGHLIGHT_STYLES[default]=none
68
-        ZSH_HIGHLIGHT_STYLES[unknown-token]=fg=white,underline
69
-        ZSH_HIGHLIGHT_STYLES[reserved-word]=fg=cyan,bold
70
-        ZSH_HIGHLIGHT_STYLES[suffix-alias]=fg=green,underline
71
-        ZSH_HIGHLIGHT_STYLES[global-alias]=fg=green,bold
72
-        ZSH_HIGHLIGHT_STYLES[precommand]=fg=green,underline
73
-        ZSH_HIGHLIGHT_STYLES[commandseparator]=fg=blue,bold
74
-        ZSH_HIGHLIGHT_STYLES[autodirectory]=fg=green,underline
75
-        ZSH_HIGHLIGHT_STYLES[path]=bold
76
-        ZSH_HIGHLIGHT_STYLES[path_pathseparator]=
77
-        ZSH_HIGHLIGHT_STYLES[path_prefix_pathseparator]=
78
-        ZSH_HIGHLIGHT_STYLES[globbing]=fg=blue,bold
79
-        ZSH_HIGHLIGHT_STYLES[history-expansion]=fg=blue,bold
80
-        ZSH_HIGHLIGHT_STYLES[command-substitution]=none
81
-        ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter]=fg=magenta,bold
82
-        ZSH_HIGHLIGHT_STYLES[process-substitution]=none
83
-        ZSH_HIGHLIGHT_STYLES[process-substitution-delimiter]=fg=magenta,bold
84
-        ZSH_HIGHLIGHT_STYLES[single-hyphen-option]=fg=green
85
-        ZSH_HIGHLIGHT_STYLES[double-hyphen-option]=fg=green
86
-        ZSH_HIGHLIGHT_STYLES[back-quoted-argument]=none
87
-        ZSH_HIGHLIGHT_STYLES[back-quoted-argument-delimiter]=fg=blue,bold
88
-        ZSH_HIGHLIGHT_STYLES[single-quoted-argument]=fg=yellow
89
-        ZSH_HIGHLIGHT_STYLES[double-quoted-argument]=fg=yellow
90
-        ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument]=fg=yellow
91
-        ZSH_HIGHLIGHT_STYLES[rc-quote]=fg=magenta
92
-        ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]=fg=magenta,bold
93
-        ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]=fg=magenta,bold
94
-        ZSH_HIGHLIGHT_STYLES[back-dollar-quoted-argument]=fg=magenta,bold
95
-        ZSH_HIGHLIGHT_STYLES[assign]=none
96
-        ZSH_HIGHLIGHT_STYLES[redirection]=fg=blue,bold
97
-        ZSH_HIGHLIGHT_STYLES[comment]=fg=black,bold
98
-        ZSH_HIGHLIGHT_STYLES[named-fd]=none
99
-        ZSH_HIGHLIGHT_STYLES[numeric-fd]=none
100
-        ZSH_HIGHLIGHT_STYLES[arg0]=fg=cyan
101
-        ZSH_HIGHLIGHT_STYLES[bracket-error]=fg=red,bold
102
-        ZSH_HIGHLIGHT_STYLES[bracket-level-1]=fg=blue,bold
103
-        ZSH_HIGHLIGHT_STYLES[bracket-level-2]=fg=green,bold
104
-        ZSH_HIGHLIGHT_STYLES[bracket-level-3]=fg=magenta,bold
105
-        ZSH_HIGHLIGHT_STYLES[bracket-level-4]=fg=yellow,bold
106
-        ZSH_HIGHLIGHT_STYLES[bracket-level-5]=fg=cyan,bold
107
-        ZSH_HIGHLIGHT_STYLES[cursor-matchingbracket]=standout
108
-    fi
109 62
 else
110 63
     PROMPT='${debian_chroot:+($debian_chroot)}%n@%m:%~%(#.#.$) '
111 64
 fi

Loading…
Откажи
Сачувај