Re: zsh et apt

Top Page

Reply to this message
Author: Christian Marillat
Date:  
To: guilde
Subject: Re: zsh et apt
On 07 janv. 2016 19:37, Patrice Karatchentzeff <patrice.karatchentzeff@???> wrote:

> Ce sont les options de complètements de .zsh/rc qui sont intéressantes :)


Je ne me souviens même plus d'ou vient ce fichier. Il est d'octobre 2001...

,----
| zstyle ':completion:*::::' completer _expand _complete _ignored _approximate
| 
| # allow one error for every three characters typed in approximate completer
| zstyle -e ':completion:*:approximate:*' max-errors \
|     'reply=( $(( ($#PREFIX+$#SUFFIX)/3 )) numeric )'
|     
| # insert all expansions for expand completer
| zstyle ':completion:*:expand:*' tag-order all-expansions
| 
| # formatting and messages
| zstyle ':completion:*' verbose yes
| zstyle ':completion:*:descriptions' format '%B%d%b'
| zstyle ':completion:*:messages' format '%d'
| zstyle ':completion:*:warnings' format 'No matches for: %d'
| zstyle ':completion:*:corrections' format '%B%d (errors: %e)%b'
| zstyle ':completion:*' group-name ''
| 
| # match uppercase from lowercase
| #zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
| 
| # offer indexes before parameters in subscripts
| zstyle ':completion:*:*:-subscript-:*' tag-order indexes parameters
| 
| # command for process lists, the local web server details and host completion
| #zstyle ':completion:*:processes' command 'ps -o pid,s,nice,stime,args'
| #zstyle ':completion:*:urls' local 'www' '/var/www/htdocs' 'public_html'
| zstyle '*' hosts $hosts
| 
| # Filename suffixes to ignore during completion (except after rm command)
| zstyle ':completion:*:*:(^rm):*:*files' ignored-patterns '*?.o' '*?.c~' \
|     '*?.old' '*?.pro'
| # the same for old style completion
| #fignore=(.o .c~ .old .pro)
| 
| # ignore completion functions (until the _ignored completer)
| zstyle ':completion:*:functions' ignored-patterns '_*'

`----

Christian