zsh: Reorder zshrc components and move stuff

Put the external plugins to the end as well as z-sy-h to the end of the
plugins.
Put the last remaining lines in the zshrc in their own modules.
This commit is contained in:
2020-11-15 01:16:00 +01:00
parent 97ab5d64a6
commit af49c39ba3
12 changed files with 13 additions and 19 deletions

View File

@@ -0,0 +1 @@
../../plugins/powerlevel10k/powerlevel10k.zsh-theme

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1 @@
../../plugins/zsh-autosuggestions/zsh-autosuggestions.zsh

View File

@@ -0,0 +1 @@
../../plugins/fzf-tab-fork/fzf-tab.zsh

View File

@@ -0,0 +1 @@
../../plugins/fzf/shell/key-bindings.zsh

View File

@@ -0,0 +1 @@
../../plugins/stderred/usr/share/stderred/stderred.sh

View File

@@ -0,0 +1,4 @@
# Bold red
export STDERRED_ESC_CODE="$(tput bold && tput setaf 1)"
export STDERRED_BLACKLIST="^(git|curl|wget|swipl)$"

View File

@@ -0,0 +1 @@
! command -v direnv &>/dev/null || eval "$(direnv hook zsh)"

View File

@@ -0,0 +1 @@
../../plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

View File

@@ -0,0 +1,30 @@
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
## colors: 0-7 standard, 8-15 high-intensity
## red
ZSH_HIGHLIGHT_STYLES[bracket-error]='fg=009,bold'
ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=009,bold'
## green
ZSH_HIGHLIGHT_STYLES[arg0]='fg=076'
ZSH_HIGHLIGHT_STYLES[suffix-alias]='fg=076,underline'
ZSH_HIGHLIGHT_STYLES[bracket-level-2]='fg=076,bold'
ZSH_HIGHLIGHT_STYLES[precommand]='fg=076,underline'
## blue
ZSH_HIGHLIGHT_STYLES[bracket-level-1]='fg=012,bold'
## yellow
ZSH_HIGHLIGHT_STYLES[double-quoted-argument]='fg=011'
ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument]='fg=011'
ZSH_HIGHLIGHT_STYLES[bracket-level-4]='fg=011,bold'
ZSH_HIGHLIGHT_STYLES[single-quoted-argument]='fg=011'
ZSH_HIGHLIGHT_STYLES[reserved-word]='fg=011'
ZSH_HIGHLIGHT_STYLES[path_prefix]='fg=011,underline'
## cyan
ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]='fg=014'
ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]='fg=014'
ZSH_HIGHLIGHT_STYLES[back-dollar-quoted-argument]='fg=014'
ZSH_HIGHLIGHT_STYLES[bracket-level-5]='fg=014,bold'
ZSH_HIGHLIGHT_STYLES[rc-quote]='fg=014'
## black/dark grey
ZSH_HIGHLIGHT_STYLES[comment]='fg=008,bold'
## magenta
ZSH_HIGHLIGHT_STYLES[bracket-level-3]='fg=13,bold'