Guest User

Modern Completion System

a guest
Jun 3rd, 2023
15,705
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.98 KB | None | 0 0
  1. # Use modern completion system
  2. autoload -Uz compinit
  3. compinit
  4.  
  5. zstyle ':completion:*' auto-description 'specify: %d'
  6. zstyle ':completion:*' completer _expand _complete _correct _approximate
  7. zstyle ':completion:*' format 'Completing %d'
  8. zstyle ':completion:*' group-name ''
  9. zstyle ':completion:*' menu select=2
  10. eval "$(dircolors -b)"
  11. zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
  12. zstyle ':completion:*' list-colors ''
  13. zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
  14. zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
  15. zstyle ':completion:*' menu select=long
  16. zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
  17. zstyle ':completion:*' use-compctl false
  18. zstyle ':completion:*' verbose true
  19.  
  20. zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
  21. zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
Add Comment
Please, Sign In to add comment