Browse Source

adaption for arch zsh directories

master
Dirk Alders 1 year ago
parent
commit
3fb3f52873
2 changed files with 60 additions and 8 deletions
  1. 13
    8
      .zshrc
  2. 47
    0
      .zshrc.d/__available__/prompt_color.zsh

+ 13
- 8
.zshrc View File

@@ -85,13 +85,13 @@ if [ -x /usr/bin/dircolors ]; then
85 85
     alias diff='diff --color=auto'
86 86
     alias ip='ip --color=auto'
87 87
 
88
-    export LESS_TERMCAP_mb=$'\E[1;31m'     # begin blink
89
-    export LESS_TERMCAP_md=$'\E[1;36m'     # begin bold
90
-    export LESS_TERMCAP_me=$'\E[0m'        # reset bold/blink
91
-    export LESS_TERMCAP_so=$'\E[01;33m'    # begin reverse video
92
-    export LESS_TERMCAP_se=$'\E[0m'        # reset reverse video
93
-    export LESS_TERMCAP_us=$'\E[1;32m'     # begin underline
94
-    export LESS_TERMCAP_ue=$'\E[0m'        # reset underline
88
+    #export LESS_TERMCAP_mb=$'\E[1;31m'     # begin blink
89
+    #export LESS_TERMCAP_md=$'\E[1;36m'     # begin bold
90
+    #export LESS_TERMCAP_me=$'\E[0m'        # reset bold/blink
91
+    #export LESS_TERMCAP_so=$'\E[01;33m'    # begin reverse video
92
+    #export LESS_TERMCAP_se=$'\E[0m'        # reset reverse video
93
+    #export LESS_TERMCAP_us=$'\E[1;32m'     # begin underline
94
+    #export LESS_TERMCAP_ue=$'\E[0m'        # reset underline
95 95
 
96 96
     # Take advantage of $LS_COLORS for completion as well
97 97
     zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
@@ -103,12 +103,17 @@ alias ll='ls -l'
103 103
 alias la='ls -A'
104 104
 alias l='ls -CF'
105 105
 
106
-# enable auto-suggestions based on the history
106
+# enable auto-suggestions based on the history for most systems
107 107
 if [ -f /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh ]; then
108 108
     . /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh
109 109
     # change suggestion color
110 110
     ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=#999'
111 111
 fi
112
+if [ -f /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh ]; then
113
+    . /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
114
+    # change suggestion color
115
+    ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=#999'
116
+fi
112 117
 
113 118
 # You may want to put all your additions into a folder file like
114 119
 # ~/.config_files/zshrc.d, instead of adding them here directly.

+ 47
- 0
.zshrc.d/__available__/prompt_color.zsh View File

@@ -44,3 +44,50 @@ if [ -f /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]; then
44 44
     ZSH_HIGHLIGHT_STYLES[bracket-level-5]=fg=cyan,bold
45 45
     ZSH_HIGHLIGHT_STYLES[cursor-matchingbracket]=standout
46 46
 fi
47
+
48
+# enable syntax-highlighting
49
+if [ -f /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]; then
50
+    . /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
51
+    ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern)
52
+    ZSH_HIGHLIGHT_STYLES[default]=none
53
+    ZSH_HIGHLIGHT_STYLES[unknown-token]=fg=white,underline
54
+    ZSH_HIGHLIGHT_STYLES[reserved-word]=fg=cyan,bold
55
+    ZSH_HIGHLIGHT_STYLES[suffix-alias]=fg=green,underline
56
+    ZSH_HIGHLIGHT_STYLES[global-alias]=fg=green,bold
57
+    ZSH_HIGHLIGHT_STYLES[precommand]=fg=green,underline
58
+    ZSH_HIGHLIGHT_STYLES[commandseparator]=fg=blue,bold
59
+    ZSH_HIGHLIGHT_STYLES[autodirectory]=fg=green,underline
60
+    ZSH_HIGHLIGHT_STYLES[path]=bold
61
+    ZSH_HIGHLIGHT_STYLES[path_pathseparator]=
62
+    ZSH_HIGHLIGHT_STYLES[path_prefix_pathseparator]=
63
+    ZSH_HIGHLIGHT_STYLES[globbing]=fg=blue,bold
64
+    ZSH_HIGHLIGHT_STYLES[history-expansion]=fg=blue,bold
65
+    ZSH_HIGHLIGHT_STYLES[command-substitution]=none
66
+    ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter]=fg=magenta,bold
67
+    ZSH_HIGHLIGHT_STYLES[process-substitution]=none
68
+    ZSH_HIGHLIGHT_STYLES[process-substitution-delimiter]=fg=magenta,bold
69
+    ZSH_HIGHLIGHT_STYLES[single-hyphen-option]=fg=green
70
+    ZSH_HIGHLIGHT_STYLES[double-hyphen-option]=fg=green
71
+    ZSH_HIGHLIGHT_STYLES[back-quoted-argument]=none
72
+    ZSH_HIGHLIGHT_STYLES[back-quoted-argument-delimiter]=fg=blue,bold
73
+    ZSH_HIGHLIGHT_STYLES[single-quoted-argument]=fg=yellow
74
+    ZSH_HIGHLIGHT_STYLES[double-quoted-argument]=fg=yellow
75
+    ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument]=fg=yellow
76
+    ZSH_HIGHLIGHT_STYLES[rc-quote]=fg=magenta
77
+    ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]=fg=magenta,bold
78
+    ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]=fg=magenta,bold
79
+    ZSH_HIGHLIGHT_STYLES[back-dollar-quoted-argument]=fg=magenta,bold
80
+    ZSH_HIGHLIGHT_STYLES[assign]=none
81
+    ZSH_HIGHLIGHT_STYLES[redirection]=fg=blue,bold
82
+    ZSH_HIGHLIGHT_STYLES[comment]=fg=black,bold
83
+    ZSH_HIGHLIGHT_STYLES[named-fd]=none
84
+    ZSH_HIGHLIGHT_STYLES[numeric-fd]=none
85
+    ZSH_HIGHLIGHT_STYLES[arg0]=fg=cyan
86
+    ZSH_HIGHLIGHT_STYLES[bracket-error]=fg=red,bold
87
+    ZSH_HIGHLIGHT_STYLES[bracket-level-1]=fg=blue,bold
88
+    ZSH_HIGHLIGHT_STYLES[bracket-level-2]=fg=green,bold
89
+    ZSH_HIGHLIGHT_STYLES[bracket-level-3]=fg=magenta,bold
90
+    ZSH_HIGHLIGHT_STYLES[bracket-level-4]=fg=yellow,bold
91
+    ZSH_HIGHLIGHT_STYLES[bracket-level-5]=fg=cyan,bold
92
+    ZSH_HIGHLIGHT_STYLES[cursor-matchingbracket]=standout
93
+fi

Loading…
Cancel
Save