You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.4 KiB

  1. #!/bin/bash
  2. # autocomplete-Systeme
  3. autoload -Uz compinit promptinit
  4. compinit
  5. promptinit; #prompt gentoo
  6. #compinit autoload -U ~/.zsh/completion/*(:t)
  7. # Beispiele für completion-Dateien
  8. # https://gitlab.com/x/.files/tree/master/zsh/.zsh/completion
  9. zstyle ':completion:*' auto-description 'specify: %d'
  10. zstyle ':completion:*' completer _expand _complete _correct _approximate
  11. # Titelzeile für completing-Vorschläge
  12. zstyle ':completion:*' format $'\n%F{yellow}Completing %d%f\n'
  13. zstyle ':completion:*' group-name ''
  14. zstyle ':completion:*' menu select=2 eval "$(dircolors -b)"
  15. zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
  16. zstyle ':completion:*' list-colors ''
  17. zstyle ':completion:*' list-prompt %SAt %p: hit TAB for more, or the character to insert%s
  18. # case insensitive
  19. zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
  20. # fuzzy search
  21. zstyle ':completion:*' matcher-list 'r:|?=** m:{a-z\-}={A-Z\-}'
  22. # nach TAB mit Cursortasten in der Vorschlagsliste bewegen
  23. zstyle ':completion:*' menu select
  24. zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
  25. zstyle ':completion:*' use-compctl false zstyle ':completion:*' verbose true
  26. zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
  27. zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
  28. zstyle ':completion::complete:*' use-cache 1