styles 1.0 KB

123456789101112131415161718192021222324
  1. # source dircolors file
  2. eval "$(dircolors ~/config_files/dircolors)"
  3. # prompt - vcs info
  4. zstyle ':vcs_info:*' enable git hg
  5. zstyle ':vcs_info:*' check-for-changes true
  6. zstyle ':vcs_info:*' stagedstr "%F{green}●" # default 'S'
  7. zstyle ':vcs_info:*' unstagedstr "%F{red}●" # default 'U'
  8. zstyle ':vcs_info:*' use-simple true
  9. zstyle ':vcs_info:git+set-message:*' hooks git-untracked
  10. zstyle ':vcs_info:git*:*' formats '[%b %c%u%F{6}]' # default ' (%s)-[%b]%c%u-' %F{6} colorize end bracket
  11. zstyle ':vcs_info:git*:*' actionformats '[%b|%a%m%c%u]' # default ' (%s)-[%b|%a]%c%u-'
  12. # Make completion:
  13. # - Case-insensitive.
  14. # - Accept abbreviations after . or _ or - (ie. f.b -> foo.bar).
  15. # - Substring complete (ie. bar -> foobar).
  16. # - use LS_COLORS to color dirs in tab completion
  17. zstyle ':completion:*' matcher-list 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
  18. zstyle ':completion:*:default' menu select=0
  19. zstyle ':completion:*' list-dirs-first true
  20. zstyle ':completion:*' list-colors "${(@s.:.)LS_COLORS}"