Add ft's zsh configuration to links section.
[zsh-lovers.git] / zsh_people / strcat / zshstyle
1 # 'zstyle' (Defines the given style for the pattern) 
2 # Normally, the completion code will not produce the directory names
3 # '.' and '..' as possible completions. If this style is set to
4 # 'true', it will add both '.' and '..' as possible completions; if it
5 # is set to '..', only '..' will be added.
6 # zstyle ':completion:*' special-dirs .. # Fnord
7 zstyle -e ':completion:*' special-dirs '[[ $PREFIX = (../)#(|.|..) ]] && reply=(..)'
8
9 # add colors to completions
10 # general completion
11   zstyle ':completion:*:descriptions' format $'%{\e[0;33m%}%d:%{\e[0m%}'
12   zstyle ':completion:*' select-prompt %SScrolling active: current selection at %P Lines: %m
13   zstyle ':completion:*:corrections' format $'%{\e[0;31m%}%d (errors: %e)%}'
14   zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
15 # hosts (background = red, foreground = black)
16   zstyle ':completion:*:*:*:*:hosts' list-colors '=*=30;41'
17 # usernames (background = white, foreground = blue)
18   zstyle ':completion:*:*:*:*:users' list-colors '=*=34;47'
19 # If the zsh/complist module is loaded, this style can be used to set
20 # color specifications. This mechanism replaces the use of the
21 # ZLS_COLORS and ZLS_COLOURS parameters.
22 # PIDs (bold red)
23   zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
24   zstyle ':completion:*:*:kill:*' menu yes select
25   zstyle ':completion:*:kill:*' force-list always
26
27 # I'm bonelazy ;) Complete the hosts and - last but not least - the remote
28 # directories. Try it:
29 #  $ scp file username@<TAB><TAB>:/<TAB>
30 zstyle ':completion:*:(ssh|scp|ftp):*' hosts $hosts
31 zstyle ':completion:*:(ssh|scp|ftp):*' users $users
32
33 # Not realy needed.
34 #  $ cd <TAB>
35 #  Komplettiere local directory
36 #  <list existing directorys>
37 # zstyle ':completion:*' format 'Komplettiere %d'
38
39 # Don't complete backup files as executables
40 zstyle ':completion:*:complete:-command-::commands' ignored-patterns '*\~'
41
42 # determine in which order the names (files) should be
43 # listed and completed when using menu completion.
44 # `size' to sort them by the size of the file
45 # `links' to sort them by the number of links to the file
46 # `modification' or `time' or `date' to sort them by the last modification time
47 # `access' to sort them by the last access time
48 # `inode' or `change' to sort them by the last inode change time
49 # `reverse' to sort in decreasing order
50 # If the style is set to any other value, or is unset, files will be
51 # sorted alphabetically by name.
52 zstyle ':completion:*' file-sort name
53
54 # how many completions switch on menu selection
55 # use 'long' to start menu compl. if list is bigger than screen
56 # or some number to start menu compl. if list has that number
57 # of completions (or more).
58 zstyle ':completion:*' menu select=long
59
60 # If there are more than 5 options, allow selecting from a menu with
61 # arrows (case insensitive completion!).
62 zstyle ':completion:*-case' menu select=5
63
64 # don't complete backup files as executables
65 zstyle ':completion:*:complete:-command-::commands' ignored-patterns '*\~'
66
67 # filename suffixes to ignore during completion (except after rm
68 # command)
69 zstyle ':completion:*:*:(^rm):*:*files' ignored-patterns  '*?.(o|c~|old|pro|zwc)' '*~'
70
71 # Messages/warnings format
72 zstyle ':completion:*:messages' format $'%{\e[0;31m%}%d%{\e[0m%}'
73 zstyle ':completion:*:warnings' format $'%{\e[0;31m%}No matches for: %d%{\e[0m%}'
74 zstyle ':completion:*:corrections' format $'%{\e[0;31m%}%d (errors: %e)%{\e[0m%}'
75 zstyle ':completion:*' group-name ''
76
77 # completions for some progs. not in default completion system
78 zstyle ':completion:*:*:mpg123:*' file-patterns '*.(mp3|MP3):mp3\ files *(-/):directories'
79 zstyle ':completion:*:*:ogg123:*' file-patterns '*.(ogg|OGG):ogg\ files *(-/):directories'
80
81 # Prevent CVS files/directories from being completed
82 zstyle ':completion:*:(all-|)files' ignored-patterns '(|*/)CVS'
83 zstyle ':completion:*:cd:*' ignored-patterns '(*/)#CVS'
84
85 # Ignore completion functions for commands you don't have:
86 zstyle ':completion:*:functions' ignored-patterns '_*'
87
88 # allow one error for every three characters typed in approximate
89 # completer
90 zstyle -e ':completion:*:approximate:*' max-errors 'reply=( $((($#PREFIX+$#SUFFIX)/3 )) numeric )'
91
92 # offer indexes before parameters in subscripts
93 zstyle ':completion:*:*:-subscript-:*' tag-order indexes parameters
94
95 # insert all expansions for expand completer
96 zstyle ':completion:*:expand:*' tag-order all-expansions