simpler completion
Ray Andrews <[email protected]>
| Newsgroups | gmane.comp.shells.zsh.user |
|---|---|
| Message-ID | <[email protected]> |
4 /aWorking/Zsh/Source/Wk 1 % mnt [TAB]
Completing executable file
Completing shell function
mnt
mnt,10,better\ unmount\ failure\ msg
mnt,11,simpler\ unmount\ code
mnt,13,better\ label\ width
mnt,14,trivial\ ok
mnt,15,major\ changes
mnt,16,trivial
mnt,17,single\ partition\ handled
mnt,18,interim
...
... can I simplify that? I only ever want to search for completion of
files (or directories) in the current directory and the listing of
matches shown below the CL seems ... well, I dunno, maybe it can be used
in some way?
Here's my completion config, it's a complete mystery to me:
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' auto-description 'specify: %d'
zstyle ':completion:*' format 'Completing %d'
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB 'for more', or the
char to insert%s
zstyle ':completion:*' select-prompt %SScrolling active: current
selection at %p%s
zstyle ':completion:*' completer _expand _complete _files
zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}'
'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
zstyle ':completion:*' verbose true
zstyle ':completion:*:match:*' original only
zstyle ':completion:*:approximate:*' max-errors 1 numeric
zstyle ':completion:*:expand:*' tag-order all-expansions
zstyle ':completion:*:cd:*' ignore-parents parent pwd
... I take all edits and suggestions on faith. Simpler is better.