From 7f0769a8ce6bd0663d29902c712891b4b2015282 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 22 Jun 2008 10:10:49 +0200 Subject: etc/completion: Use zsh magic instead of head/sed --- etc/completion | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'etc') diff --git a/etc/completion b/etc/completion index 6ccf8fa..a0c8dd5 100644 --- a/etc/completion +++ b/etc/completion @@ -1,12 +1,15 @@ ## vim:ft=zsh +zstyle :compinstall filename "$HOME/.zshrc" + # Add own completions fpath=($ZDIR/completions $fpath) -zstyle :compinstall filename "$HOME/.zshrc" -ls-colors: zstyle ':completion:*' list-colors $(dircolors $HOME/packages/zsh/etc/dircolors | head -n 1 | sed -r 's/LS_COLORS=|;$//g') +ls-colors: zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} + # Mark the current selection when tabbing through possible completions zstyle ':completion:*' menu select=1 + # Also complete uppercase names with lowercase zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' '' -- cgit v1.2.3