Skip to content

Instantly share code, notes, and snippets.

@bkudria
Created May 27, 2009 23:03
Show Gist options
  • Save bkudria/118969 to your computer and use it in GitHub Desktop.
Save bkudria/118969 to your computer and use it in GitHub Desktop.
#! /bin/zsh -f
zstyle ':completion:*' completer _expand _complete _ignored _match _correct _approximate _prefix
zstyle ':completion:*' expand prefix suffix
zstyle ':completion:*' file-sort name
zstyle ':completion:*' group-name ''
zstyle ':completion:*' ignore-parents parent pwd
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' matcher-list 'm:{[:lower:]}={[:upper:]}' '+m:{[:lower:][:upper:]}={[:upper:][:lower:]}' '+r:|[._-]=** r:|=**' '+l:|=* r:|=*'
zstyle ':completion:*' max-errors 1
zstyle ':completion:*' menu select=5
zstyle ':completion:*' preserve-prefix '//[^/]##/'
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path ~/.zsh/cache
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
zstyle :compinstall filename '/home/bkudria/.zsh/completion'
hosts=${(z)"$(hosts.rb -h)"}
zstyle ':completion:*:hosts' hosts $hosts
autoload -Uz compinit
compinit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment